Paypal redirect problem within widget iframe
Posted: Fri Jun 14, 2013 4:11 pm
Hi, I have set up a widget of the booking page on a website. The widget is an iframe, and because when you confirm the booking to pay with paypal you get redirected, an error is thrown. This is because browser security tries to prevent you redirecting within an iframe.
You can get around this by having the link to "Continue to Payment" look something like this:
<a href="javascript:parent.window.location.href='https://www.paypal.com/uk/cgi-bin/websc ... ">Continue to Payment</a>
This will redirect you within the main parent page, rather than the iframe.
However I can't edit the code for the booking page so can't fix this problem. Any ideas?
Thanks
You can get around this by having the link to "Continue to Payment" look something like this:
<a href="javascript:parent.window.location.href='https://www.paypal.com/uk/cgi-bin/websc ... ">Continue to Payment</a>
This will redirect you within the main parent page, rather than the iframe.
However I can't edit the code for the booking page so can't fix this problem. Any ideas?
Thanks