- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.