I have two payment options:
Paypal WPP and Paypal WPS.
Paypal WPP is the default payment gateway.
If I choose Paypal WPS and press checkout, then "process to paypal", then press back in my browser, the payment gateway is defaulted to Paypal WPS but the credit card form is displayed. WPS doesn't usually have a credit card payment form.
Now if I go back and forward a couple times, I'm no longer able to proceed to the Credit Card form and instead I'm sent to the "Address pane" and when I click next I'm directed to Paypal WPS.
I believe something is getting set it cookies and messing up my user experience.
Ideally the first time when I come back from Paypal, Paypal WPS would be selected and no credit card form would be displayed.
Ideally when I go back and forth a couple times, I would be able to get at the credit card information form, so I can decide to instead pay directly with my credit card via WPP.
This will confuse the end user and I suspect some people would decide to not pay and I'll lose sales.
Attached is an image of my check pane workflow.

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | commerce_checkout-disable_payment_radios_on_submit-1258266-4.patch | 810 bytes | marcin.wosinek |
| #4 | commerce_checkout-disable_payment_radios_on_submit-1258266.patch | 812 bytes | marcin.wosinek |
| commerce-checkout-panes-workflow.png | 47.9 KB | j0rd |
Comments
Comment #1
marcin.wosinek commentedI've noticed strange behaviour while using back button with off site payment methods too. I've followed instruction in this issue, and reproduced error.
When we enter to off site payment method, order is set to Checkout: Payment status. It goes back to Checkout: Review when we come back to shop by clicking cancel in payment method. While order is in Checkout: Payment we have site /checkout/%order blocked(by design, to prevent changes in order); and when try to open it, we are redirected to payment site. In the same time checkout/%order/review is blocked in the same way, but we can get there by back button in browser.
Has anyone any idea how it can be solve?
Comment #2
marcin.wosinek commentedFix status.
Comment #3
rszrama commentedSee #1199170: Cart contents lost before Paypal completion
Comment #4
marcin.wosinek commentedThe issue with site loaded from back button cache will probably still exist even when #1199170 will introduce new refresh solution. Here is patch disabling payment methods radios. I wonder if adding "You've already submitted this form, please refresh page." message will make sense.
Comment #6
marcin.wosinek commentedFixed patch.
Comment #7
marcin.wosinek commentedIt turned out to be nicely fixed out by #4 from #1621210: Add to cart form submit + redirect + user presses back button = broken ajax on cart form so I'm marking it a duplicate.
Comment #7.0
marcin.wosinek commentedIncluded attached image in post.