One page checkout not working when "Order totals on payment info tab" option is enabled - Nop Version 4.5

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 years ago
Nop version: 4.5

Expected Behavior:
Checkout completes successfully when "One Page Checkout" is enabled, regardless of "Order totals on payment info tab" option being enabled.

Actual Behavior:
One page checkout does not work when the "Order totals on payment info tab" is enabled. The checkout process goes through till the "Payment Information" tab, then redirects to the cart page.

Steps:
1. Admin Panel -> Configuration -> Settings -> Order Settings -> Advanced
2. Enable "Use one page checkout"
3. Enable "Order totals on payment info tab" under the "Use one page checkout" option
4. Public Store -> Add item to cart
5. Cart page -> Checkout
6. Select/Enter information on all tabs
7. On "Payment Info" tab, click "Continue"
8. Instead of going to the "Confirm" tab, the user is redirected to the "Cart" page

Workaround:
Checkout works successfully with the "Order totals on payment info tab" enabled, when either of these two are applied:
1. asp-anti forgery=false is added to the form co-payment-info-form in OnePageCheckout.cshtml
2. [IgnoreAntiforgeryToken] is added to the OpcSavePaymentInfo method in the CheckoutController.cs class.
2 years ago
Thanks. Here is a work item for this.
2 years ago
Thank you!
2 years ago
Done. Please see this commit.
2 years ago
Thanks. Done
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.