Choose an amount using the Paypal donation button

I am trying to create a donation using the PayPal button and add a custom selection with a quantity. I tried to add something like this:

<label for="amount">Select the amount you wish to donate:</label> <input type="hidden" name="currency_code" value="EUR" /> <select id="amount" name="amount"> <option value="25.00">€25.00</option> <option value="35.00">€35.00</option> <option value="50.00">€50.00</option> <option value="75.00">€75.00</option> <option value="100.00">€100.00</option> </select> 

but PayPal just doesn't get the selected value. What am I missing? What user variables should be placed in the button generator form?

+4
source share
1 answer

This code works for me:

 <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- Identify your business so that you can collect the payments. --> <input type="hidden" name="business" value=" my@email.com "> <!-- Specify a Donate button. --> <input type="hidden" name="cmd" value="_donations"> <!-- Specify details about the contribution --> <input type="hidden" name="item_name" value="Donation"> <input type="hidden" name="item_number" value="Donation"> <select name="amount"><option value="10.00">€10.00</option><option value="25.00">€25.00</option></select> <input type="hidden" name="currency_code" value="EUR"> <!-- Display the payment button. --> <input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" alt="PayPal - The safer, easier way to pay online"> </form> 

Link

+7
source

All Articles