Buy Now Button not working

Belgrael
Contributor
Contributor

I have 2 Buy Now buttons on my site (Wordpress page) and neither is working, taking me only to the PayPal login page.

 

I've browsed some old messages here and it seems the code might be missing something but I'm not quite sure what.

 

This is the code for one of them:

 

<input name="hosted_button_id" type="hidden" value="QRTDFWYPMU78S" />

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" />

 

 

Can anyone tell me what's missing?

 

Thanks in advance.

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

skier
Advisor
Advisor

Below is what your item button code should look like:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input name="hosted_button_id" type="hidden" value="QRTDFWYPMU78S">
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" type="image">
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1">
</form>

 

The PayPal item button code is simply an HTML Form.  The example you posted had part of the code outside of the the Form and you were missing the "command" line.

 

As to why, not sure.  Some HTML Editors and/or web sites have issues with HTML Forms.   Hint - Wordpres is a different animal.   You need to find out how Wordpress works with HTML Forms.

 

 

Regards,

 

skier



:

View solution in original post

Login to Me Too
4 REPLIES 4
Solved

skier
Advisor
Advisor

Below is what your item button code should look like:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input name="hosted_button_id" type="hidden" value="QRTDFWYPMU78S">
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" type="image">
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1">
</form>

 

The PayPal item button code is simply an HTML Form.  The example you posted had part of the code outside of the the Form and you were missing the "command" line.

 

As to why, not sure.  Some HTML Editors and/or web sites have issues with HTML Forms.   Hint - Wordpres is a different animal.   You need to find out how Wordpress works with HTML Forms.

 

 

Regards,

 

skier



:

Login to Me Too

Belgrael
Contributor
Contributor

Thanks very much.

 

I've used Donate and Subscribe buttons without incident on another Wordpress site I run so I was a bit stumped with this one.

 

Your amendments have been implemented and the buttons now work find.


Thanks again.

Login to Me Too

skier
Advisor
Advisor

Nice, don't forget the Kudos ....

 

Regards,

 

skier

Login to Me Too

Belgrael
Contributor
Contributor

Thanks, I didn't know about the kudos thing. That was my first post 😄

Done now Smiley Happy

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.