Trying to send multiple items to the trash and have problems:
This (single element) works fine:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="1st Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
This (a few elements seems to be the proposed solution) causes an error on the cart page that says: “PayPal cannot process this transaction due to a problem with the seller’s website. Please contact the seller directly to resolve this problem.”: <
form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount_1" value="20.00" />
<input type="hidden" name="item_name_1" value="1st Item" />
<input type="hidden" name="amount_2" value="20.00" />
<input type="hidden" name="item_name_2" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
Two forms (below) work fine, but I'm trying to get a view with one form and one click.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="1st Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="20.00" />
<input type="hidden" name="item_name" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
If I use the following, it works fine, but it doesn’t get on the cart page, but rather on the "Choose a payment method" page
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="business" value="xxx" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount_1" value="20.00" />
<input type="hidden" name="item_name_1" value="1st Item" />
<input type="hidden" name="amount_2" value="20.00" />
<input type="hidden" name="item_name_2" value="2nd Item" />
<input type="image" src="addcart.gif" name="submit" alt="cart add" />
</form>
Any suggestions?
source
share