I cannot figure out what I am doing wrong with my code, I get the error
"We have detected a problem with this shopping cart. If the problem persists, please contact the merchant."
Here is the form I'm submitting...
<form name="paypalForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="example@example.com">
<input type="hidden" name="return" value="http://example.com/payment1.php">
<input type="hidden" name="undefined_quantity" value="0">
<input type="text" name="item_name1" value="1 item name">
<input type="text" name="item_number1" value="1">
<input type="text" name="amount1" value="0.4">
<input type="text" name="tax1" value="0.076">
<input type="text" name="item_name2" value="2 item name">
<input type="text" name="item_number2" value="2">
<input type="text" name="amount2" value="3.5">
<input type="text" name="tax2" value="0.665">
<input type="text" name="num_cart_items" value="2">
<input type="text" name="quantity" value="1">
<input type="text" name="currency_code" value="USD">
<input type="text" name="tax" value="0.741">
<input type="text" name="no_shipping" value="0">
<input type="text" name="no_note" value="0">
<input type="text" name="cancel_return" value="example.com/cancel.php">
<input type="text" name="notify_url" value="http://example.com/payment1.php">
</form>
I put type "text" so I could debug..
I had the same Problem, but when I have added a line it solved
you can try it. I am not sure is this is the correct solution or not.
I see quite a few problems:
See button code for a cart upload button below:
You should check for the variables PayPal supports for Website Payments Standard (buttons) here.