PayPal error when one item quantity is 0

Pearcy99
New Community Member

I am trying to implement a solution that sends multiple items and their quantities to PayPal on the button click.

 

I have two items, and this works fine if there is at least one of each item in the cart, but if one is 0, then it fails with the message "Things don't appear to be working at the moment. Please try again later."

 

Any ideas what I'm doing wrong here?

<form action="https://www.paypal.com/cgi-bin/webscr" method="POST">
<input name="cmd" type="hidden" value="_cart" />
<input name="business" type="hidden" value="ouremailaddress" />
<input name="upload" type="hidden" value="1" />
<input name="item_name_1" type="hidden" value="Gala Tickets - $75 per person" />

<input name="amount_1" type="hidden" value="75.00" />
<strong>Gala Tickets - $75 per person</strong>
Quantity: <input type="number" max="99" min="0" name="quantity_1" value="0" />
<input name="item_name_2" type="hidden" value="Sponsor A Staff Member - $40" />

<input name="amount_2" type="hidden" value="40.00" />
<strong>Sponsor A Staff Member - $40</strong>
Quantity: <input type="number" max="99" min="0" name="quantity_2" value="0" />

<input alt="Check out with PayPal" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png" type="image" />
</form>
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.