Paypal and Inline frame

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
Rodders
 
 
Posts: 27
Joined: Tue Apr 14, 2020 7:12 pm

Paypal and Inline frame

Post by Rodders »

I am building a small site where there is a need for 4 different pricing options as well as the need for capturing specific text data. So I created the simple Paypal cart and as a standalone it works okay. However there are 4 different options for the cart and I've built it so that they appear within an inline frame which works nicely, until you go to check out and then it opens Paypal within the inline frame, but i'd really prefer it to open in a new window. In additionthere is a statement on the Paypal front page that says cancel & return to info@driveandjive.uk, which obviously isn't a URL. Can I configure it so that Paypal opens in a seperate window please?
The full site is on www.styleprint.biz and the wbs file for just the relevant pages/forms is shown at the top of the page. Any pointers would be great
Created in WYSIWIG 20
Thanks
Nick
User avatar
BaconFries
 
 
Posts: 6246
Joined: Thu Aug 16, 2007 7:32 pm

Re: Paypal and Inline frame

Post by BaconFries »

You can try adding target="_blank" as shown in the example below. It is also good practice to also include rel="noopener noreferrer" As this will prevent the "New" window trying to access the original page.
As for the email address that will be the address of the business/paypal account

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <!-- Your items/amount fields -->
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="business" value="seller@example.com">
    <!-- ... other fields ... -->
    <input type="submit" value="Pay with PayPal">
</form>
Rodders
 
 
Posts: 27
Joined: Tue Apr 14, 2020 7:12 pm

Re: Paypal and Inline frame

Post by Rodders »

Cheers I'll give it a go. Just weird that it refers to returning to an email address as that will never work!
Post Reply