Paypal Donate/Donations with Dropdown Amounts -HTML Block Code

Permalink 1 user found helpful
Hello,

I have had a difficult time getting the Paypal plugin to work the way I wanted for donations. The client wanted either radio buttons or a select box for the donation amounts. I am not sure whether an HTML block is the best option or not, but it got me to the result I was looking for quickly. I wanted to share it since I couldn't find it already out here in a plugin (the ability to use a dropdown for donation amounts), so maybe it will be helpful to someone else as well. Hopefully, my instructions are not so confusing.

EDIT THIS CODE and PASTE IT IN THE HTML BLOCK IN C5
<form class="form-center" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="yourPayPalEmailAddress@GoesHere.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Organization Name"><br>
<select name="amount" id="amount">
<option value="10.00">$10.00</option>
<option value="25.00">$25.00</option>
<option value="50.00">$50.00</option>
<option value="75.00" selected="selected">$75.00</option>
<option value="100.00">$100.00</option>
<option value="500.00">$500.00</option>
<option value="1000.00">$1000.00</option>
<option value="">Other Amount</option>
</select>


Be sure to replace the values in the following lines:

*
<input type="hidden" name="business" value="yourPayPalEmailAddress@GoesHere.com">
...with YOUR organization's email address where they collect donations from PayPal.

*
<input type="hidden" name="item_name" value="Organization Name">

...with YOUR organization's name.

*
<select name="amount" id="amount">
<option value="10.00">$10.00</option>
<option value="25.00">$25.00</option>
<option value="50.00">$50.00</option>
<option value="75.00" selected="selected">$75.00</option>
<option value="100.00">$100.00</option>
<option value="500.00">$500.00</option>
<option value="1000.00">$1000.00</option>
<option value="">Other Amount</option>
</select>
...with the amounts which you would like listed in the dropdown. E.g. replace
<option value="10.00">$10.00</option>
with
<option value="6000000000000.00">$6000000000000.00</option>
for $6,000,000,000,000.00

note: This is for US Dollars as well...you will have to chose your currency if that's not what you need.
<input type="hidden" name="lc" value="US">



---For the time being, an example can be found on this page:http://demo.aviveinc.org/index.php/how-help/donate...

DeviantDeer
 
mnakalay replied on at Permalink Reply
mnakalay
Thank you for sharing
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
I will look into adding this as an option for the Donate and Buy Now option for EZ Paypal.

https://www.concrete5.org/marketplace/addons/ez-paypal...
DeviantDeer replied on at Permalink Reply
DeviantDeer
That would be fantastic and would be good for the future for when I hand the site over. If the client wants to edit the button without my help, they will have the benefit of the add-on interface rather than html code. Thanks!