PayPal buttons not working

ukpeanut
Contributor
Contributor

I have added PayPal buttons on my website and some of them don't work at all.

On the homepage, I added the following Buy Now buttons, but you can't click on them. All I did was copy and paste the code into the HTML editor and add a <div> tag.
Homepage: https://www.thefrizzgirls.com/
Here's the code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="KLLAQYAYDB3UY">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="CXS8DPWRJU6P6">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
***The code was generated by PayPal. I only add a <div align="center"></div> to center the button.

On the shop page, I have one button that is not working – The Hair Journals. Every other button on that page works.
https://www.thefrizzgirls.com/shop
Here's the code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8EBJXNY3K3V5N">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
***The rest of the button on the Shop page work fine.

I tried creating a new button from a button that was working, but once it's online, you can't click on it. It's like the code doesn't want to work and I don't understand why when I'm not even changing anything.

Login to Me Too
2 REPLIES 2

MTS_Chiranjeevi
Moderator
Moderator

Good day @ukpeanut,

 

Thank you for posting to the PayPal community.

 

I have tried to reproduce the issue via https://www.thefrizzgirls.com/shop and could able to process the PayPal payment checkout flow successfully through the button "The Hair Journals" without any issues. 

 

Screenshot 2023-06-22 at 1.27.58 PM.pngScreenshot 2023-06-22 at 1.28.54 PM.png

 

I would suggest to please try process a test payment via card which is not linked to your PayPal account, since merchants can't process self payments. 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

 

Login to Me Too

ukpeanut
Contributor
Contributor

I fixed the issue last night after doing an extensive Google search.

For those of you that are using PayPal buttons with a Google Site, when you import your text into the HTML editor, change the code from ="_top" to ="_blank" and the button will work.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.