Different donations- earmarked for certain projects?
ausmavsfan
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-02-2018
08:06 PM
Hello,
I am working with a non-profit to build a PayPal donate button that fits their needs. Our goal is to give the donors an option to choose what project their money supports. Is there a way to do this when building a donation button?
For example:
-Donor clicks button
- Gets 3-4 options on projects to donate to
- Donor selects project they want to contribute to
- They enter contribution amount and pay
Thank you for your help!
1 REPLY 1
Anonymous_User
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-04-2018
04:39 PM
You can manually tweak the "item_name" variable to create a drop down selection. Note, the online button creator is a great tool but, has it's limitations when you need some customization, thus the code needs to be manually created. For learning purposes, check out the example below:
<!DOCTYPE html> <html lang="en"> <head> <title>Basic Donation Example</title> <!-- START META TAG SECTION --> <meta name="Description" content=""> <meta name="KeyWords" content=""> <meta charset="UTF-8"> <!-- END META TAG SECTION --> </head> <body> <!-- Start of Form --> <form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_donations"> <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID --> <input type="hidden" name="business" value="your PayPal Email Address or your Merchant Account ID"> <input type="hidden" name="no_shipping" value="1"> Choose Your Organization: <select name="item_name"> <option value="Good Will" selected>Good Will</option> <option value="United Way">United Way</option> <option value="Boys and Girls Club">Boys and Girls Club</option> <option value="West Side Shelter">West Side Shelter</option> <option value="Pets and Vets">Pets and Vets</option> </select> <br><br> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <!-- Start Tax Override meaning No Tax --> <input type="hidden" name="tax" value="0"> <!-- End Tax Override --> <!-- <input type="hidden" name="bn" value="PP-DonationsBF"> --> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> <!-- End of Form --> </body> </html>
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- System error for my Paypal button after years of correct working in PayPal Payments Standard
- Recurring payments for cart with multiple individually subscribable items? in PayPal Payments Standard
- Why is the paypal button on this donation page not working, but credit card payments do? in PayPal Payments Standard
- Setting a Thank You message for donations in NVP/SOAP APIs