Paypal redirect problem within widget iframe

If you have found a problem with the system report it here
Post Reply
savhanda
Posts: 1
Joined: Fri Jun 14, 2013 3:56 pm

Paypal redirect problem within widget iframe

Post by savhanda » 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

annedawn
Posts: 20
Joined: Fri Mar 02, 2012 1:48 pm

Re: Paypal redirect problem within widget iframe

Post by annedawn » Sun Jun 16, 2013 5:41 pm

If Beds24 is used within an Iframe it cannot redirect the user to PayPal due to the security settings in browsers. To fix you can allow the the paypal page to open in a new window. Go to SETTINGS -> BOOKING PAGE -> ADVANCED and set Open in new Window to "On Paypal".

Post Reply