How to set ZERO amount in Paypal basket

Whenever I try to order something from my own PayPal form, all values ​​should be above 0. How can I do this only to order one item and the other for zero

Error message: You entered an invalid quantity value. The quantity value must be an integer greater than or equal to one.

Sample Code: JSFiddle

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" type="hidden" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="business" type="hidden" value="test@example.com" />

Italian on Wheat Bread
<input type="hidden" name="amount_1" value="6.00" />
<input type="hidden" name="item_name_1" value="Italian on Wheat Bread" />
<input type="number" name="quantity_1" value="0" />
<br />
Turkey on White Bread
<input type="hidden" name="amount_2" value="6.00" />
<input type="hidden" name="item_name_2" value="Turkey on White Bread" /> 
<input type="number" name="quantity_2" value="0" /> 
<br />
Vegetarian on Wheat Bread
<input type="hidden" name="amount_3" value="6.00" />
<input type="hidden" name="item_name_3" value="Vegetarian on Wheat Bread" /> 
<input type="number" name="quantity_3" value="1" /> 
<br />

<input type=submit />
</form>
+2
source share
1 answer

PayPal forms require an integer greater than zero. The order form does not have the ability to have 0 quantity of goods. The presence of a zero value means that the item is not in the basket.

PayPal Form Basics

0
source

All Articles