- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can make (by using the PayPal button factory) and install Buy Now buttons on my web site.
For some reason that I cannot fathom, I cannot make a cart button that works, either by using the
button factory, or by writing the HTML myself. When I look at the cart, it simply says that
the cart is empty.
At PayPal I have a business account, I use Website Payments Standard, and so far as I can see I use
exactly the same steps for the cart button that I would use for a Buy Now button.
I make the web page using Visual Studio and it is only one stage up from a bare sheet
It has got me utterly foxed. Where should I be looking ?
I have included the HTML of the page.(I just altered a URL for security)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Default</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /><link href="EngPP.css" type="text/css" rel="Stylesheet" /> </head> <body> <form id="FormA" method="post" runat="server"> <!-- Fa --> <div id="container"> <div id="inner_container"> <div class="treq"><p></p><p> <b>THE PAGE HEADING IS HERE</b></p> </div> <p><asp:Label ID="Label1" runat="server" Text=""></asp:Label></p> <p>One pound test item</p> <form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="add" value="1"> <input type="hidden" name="business" value="an email address"> <input type="hidden" name="item_name" value="One Pound Item"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="shopping_url" value="http://www.3aaa3.info/Default.aspx"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="notify_url" value="http://www.mylistenersite.net"> <input type="hidden" name="cancel_return" value="http://www.3aaa3.info/Page52.aspx"> <input type="hidden" name="return" value="http://www.3aaa3.info/Page51.aspx"> <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_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_GB/i/scr/pixel.gif" width="1" height="1"> </form> <!-- Below is the view cart button made using admin@.... as the option. Works OK --> <p></p> <p></p> <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="encrypted" value="-----BEGIN PKCS7-----MII (coded stuff omitted)----END PKCS7----- "> <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_viewcart_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_GB/i/scr/pixel.gif" width="1" height="1"> </form> </div> <!-- End of inner_container --> </div> <!-- End of container --> </form> <!-- END OF Fa --> </body> </html>
</body>
</html>
Solved! Go to Solution.
Accepted Solutions
- 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
Actually the example code you posted does not help. Would need to see the actual code on a web page.
What you should do is test the code first on a blank web page, not your web site. If the code works, the problem is more with your web site and/or HTML editor. You can test the code right from your computer first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK. You can see the whole code at http://www.3aaa3.info. Although this is a web site, it is just a skeleton to help me solve this problem. It's not commercial.
- 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
I don't understand what you consider a blank web page to be.
I think what I've got is pretty near blank. All web pages have got something written on them, the header etc. Tell me what you mean and then I'll do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is a blank web page example. Select and copy the example code, you can use Notepad or an HTML Editor. Next copy your item button code and paste the code between the lines that say Start Sample Code Section / End Sample code section. Then save the file. Make sure you save the file with an .htm or .html extension. Example name would be: Test.html or Test.htm
Save the file to your computer and then open the file with your web browser. If the code works OK, then you know the problem is with your web site.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>TEST Page</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Language" content="en"> <!-- END META TAG SECTION --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- END SAMPLE CODE SECTION --> </body> </html>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK I am much obliged to you because I pasted in the button from the example I had in my original post and it worked straight away.
Some progress, then.
Are you able further to indicate what types of incompatibility might be on the page I used ? I nearly always start from this sort of position and then add bits and pieces until I get to where I want to. I can't remember ever having had a problem with this before.
In any event, thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's tons of reasons the code does not work right.
Some sites don't handle HTML Forms properly. If yes, you need to use the hyperlink version of the code.
Some HTML editors have to be in a specific editing mode to handle the code.
Some HTML editors will enumerate the form variables, they tag a number to end of each variable.
PayPal's button code does not work in Frames unless tweeked a little.
You can nest a form within a form and not know it. The code fails.
- 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.
- Using PayPal on my website in Selling on your website
- Customising View Cart button in Selling on your website
- Problems Setting up Express Checkout with ASP.NET in Selling on your website
- Paypal Add to Cart buttons not appearing for some customers in Selling on your website
- Add to cart button in Selling on your website