Buy Now Button will not work

JKaper
Contributor
Contributor

 

I am trying to add a buy now button to my website but each time I click on the button it just takes me to a blank website that has my site's web address.  The code is as follows.

 

<form 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="7S2K2Z9DFAYUA">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_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>

 

Any suggestions?

Login to Me Too
3 REPLIES 3

PayPal_Frank
Administrator
Administrator

Hi JKaper,

 

Welcome to the community! 🙂

 

The button code you provide is working for me.  It sounds like there might be some HTML or Javascript on your webpage that could be interfering with or modifying this button code.

 

Hopefully you found a solution by now but I just wanted to let you know just in case.

 

- Frank

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!
Login to Me Too

JKaper
Contributor
Contributor

Thank you Frank.  I did get a reponse to my inquiry and I needed to change the first line of code.  Everything is working great now!

Login to Me Too

PayPal_Frank
Administrator
Administrator

Thanks for letting the community know! 🙂  I'm glad to hear everything is working.

 

It sounds like they had you add target="paypal" back into the first line.  I know that can help if the button is being placed into a frame.

 

 

- Frank

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!
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.