Checkout result page loads within iframe instead of redirecting in main window
-
The checkout result page loads within the payment iframe instead of redirecting in the main browser window. All subsequent site navigation is then within the iframe as well.
I am using the accept_stripe_payment shortcode to summarise a custom basket:
[accept_stripe_payment name=”Test Store” description=”Stuff from Us” price=”1234″ button_text=”Pay Online”]
I have the issue in Safari (latest Mac version) and Safari on iOS but not in Chrome latest. Firefox is also OK.
The plugin used to redirect to the Checkout Result page after a successful payment. It now appears to load the result page in the same iframe as the payment popup form.
This results in a messy page layout, where the iframe includes the same site header and footer as the page underneath it.
In Twenty Twenty the page looks OK, but is still in an iframe. This seems to be something to do with the way the iframe lays over the page in default themes. Using my site theme it looks as though the loaded iframe is using my theme’s default template and so header, footer and so on are pulled in twice and the page is a mess.
However, and this is a deal breaker, even in default themes because the iframe includes the full site header and navigation, users are now navigating sites within the iframe and not within the browser.
If I downgrade to version 2.0.37 of the plugin I still have the problem.
But if I downgrade the plugin to 2.0.35 then I get a redirect to my checkout result page instead of it appearing in the iframe. No problem.
As a test, if I paste the iframe URL /asp-payment-box/?product_id=3408 into my browser, I get the payment box. I make a test payment and I am redirected correctly to /stripe-checkout-result/
So it looks as though Safari keeps using the iframe after payment instead of redirecting to the results page as other browsers do.
Thanks
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- This topic was modified 2 years, 8 months ago by .
- The topic ‘Checkout result page loads within iframe instead of redirecting in main window’ is closed to new replies.