cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal Add to Cart not working on iOS

SOLVED
Highlighted
Contributor

PayPal Add to Cart not working on iOS

I'm building a website that uses standard "Add to Cart" buttons from PayPal. Everything works fine on the desktop, and in the mobile Chrome browser, but on iOS, the Add to Cart buttons don't work. They pull up a new tab, which gives me a spinning "loading" ring, which continues to spin indefinitely. The phone I'm using for testing is an iPhone 6+ running iOS 11.

 

Here's the website:

https://www.NightOwlCircusArts.com

 

Unfortunately you do have to register a free account to actually view the "Add to Cart" buttons I'm referring to, so here's the source code I'm using for one of the buttons:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                <input type="hidden" name="cmd" value="_s-xclick">
                <input type="hidden" name="hosted_button_id" value="EPP74NSCRTC7E">
                <input type="hidden" name="custom" value="a%3A2%3A%7Bi%3A0%3Bs%3A27%3A%22info%40nightowlcircusarts.com%22%3Bi%3A1%3Bs%3A18%3A%22Single+Group+Class%22%3B%7D">
                <input type="image" src="images/addtocart1.png" border="0" name="submit" alt="Add to Cart" width="159" height="26" class="addtocart">
                <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
            </form>

Any suggestions on how to get the buttons to work on iOS? I don't want to lose sales because the button won't work!

1 ACCEPTED SOLUTION

Accepted Solutions
Contributor

Re: PayPal Add to Cart not working on iOS

yes, you have to remove target="paypal" from the line

 

should be line this <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

10 REPLIES 10
Contributor

Re: PayPal Add to Cart not working on iOS

Very similarly, I have just created some 'add to cart' buttons too and they also do as the OP mentions, OR they go to the main paypal login page which takes users to their own PayPal statement as opposed to their cart.  Works fine on everything except iOS.

 

 

Contributor

Re: PayPal Add to Cart not working on iOS

I'm having very similar issue. If a customer is using an iPhone & using Google/Chrome as a browser the Add To Cart brings them to Paypal login page & there's no cart. Safari works on iPhones & Google works on android, but anyone with an Iphone that doesn't switch browsers can't place an order.

Contributor

Re: PayPal Add to Cart not working on iOS

Has any one found solution to fix this issue I am facing also with my ido app
Contributor

Re: PayPal Add to Cart not working on iOS

yes, you have to remove target="paypal" from the line

 

should be line this <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

Contributor

Re: PayPal Add to Cart not working on iOS

yes, you have to remove target="paypal" from the line

 

should be line this <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

Contributor

Re: PayPal Add to Cart not working on iOS

FANTASTIC!  That's fixed it.  Thank you very much for taking the time to reply with the solution!

Contributor

Re: PayPal Add to Cart not working on iOS

Having the same issue: button brings me to the main log in screen instead of any Cart page. I tried the solution suggested by @RPMGraphics but that only disabled the button completely for me. Clicking it doesn't bring me to PayPal at all anymore. Thanks to anyone with suggestions!

Contributor

Re: PayPal Add to Cart not working on iOS

I'm having the same issue, clicking add to cart takes buyer to PayPal home screen.  Removing "target PayPal" from code did not fix the problem.  If I go to my website on my iPhone XR either directly through the safari browser OR through the Google search app the add to cart button works perfectly.  If I go to my website on my iPad Pro directly through the safari browser it works perfectly but if I go to the site using the Google search app it takes me to the PayPal home screen.  The identical thing occurred when I tested the add to cart button on my wife's iPhone 8s.  Safari browser direct worked but going through Google search did not.  All Apple devices I made reference to are running on IOS 12.3.1   

 

The issue is making potential buyers mad and causing me to lose sales.  Has anyone found a fix for this yet beyond the recommendation to remove "Target Paypal" from the code ?  Would really appreciate the help.

 

Thanks !  

Contributor

Re: PayPal Add to Cart not working on iOS

I'm having the same issue, clicking add to cart takes buyer to PayPal home screen. Removing "target PayPal" from code did not fix the problem. I appreciate the work CandL user did about iphones' and ipads' browsers seems to be problem. Customers want to buy and do not want to help trouble shoot and most don't really know what browser they are using.  Perhaps there is no fix since it seems to be a iOS browers and device specific. I have friend on iphone 7 plus that add cart button worked with the "target PayPal" and without the "target PayPal" code. I have customer that it did not work with removed code so if anyone else has info to help narrow down the specific issue or resolution I would like to know. Will also post other specific to issue if I find any.  I don't have any iOS devices.