Need Non-Profit Buttons for Recurring and Non Recurring gifts. What options do I have?

AIMConnects
Contributor
Contributor

Hey there,

 

I had a hard deadline that I was supposed to meet tonight to have recurring gift options for each of our missionaries to have a new button placed for each of them. Well I thought it would be a lot easier than it apparently is, I guess recurring gifts are not a normal thing. Anyway, I was planning on just having two buttons under each missionary one that says donate, this is currently in place, and the other that says recurring and set it up like that but there is not an option to create a button like this. I read the article that has the code that you can edit but something was not working right with it. Is that the best option I have is to have 2 buttons for each missionary? Can someone point me toward a code that does work to create a recurring donation button with an open field for the amount and then options like weekly, monthly and yearly? I'd appreciate any help! Thanks!

Login to Me Too
6 REPLIES 6

MTS_Ciaran
Moderator
Moderator

How do, the process is easy enough, its basically the same as a subscription button. See below for help on getting it setup:

 

https://www.paypal.com/us/webapps/mpp/get-started/create-recurring-donation-button

 

If you need help let me know. 

Login to Me Too

AIMConnects
Contributor
Contributor

I am in need of help if you dont mind. Those are the directions I followed and the button was visually there but did not function. Would you mind helping us?

Login to Me Too

MTS_Ciaran
Moderator
Moderator

yea sure, post the button code and we can test it out. 

Login to Me Too

AIMConnects
Contributor
Contributor

Customer service told me that if we choose donate then the customer will have the option for it to be a recurring gift when the click the button. That does not seem to be an option but that would be ideal for me. Could you do a button that would let them do a one time gift but then if they want to click recurring they can and then choose the frequency? The problem with that code that you posted above is that it leaves it all above the button on my website instead of taking them to a new page at paypal to choose options. Is there a better way?

 

Login to Me Too

LastHope
New Community Member

I access this link the other day, but didn't have time to work on it. When I go back now, it seems to have been changed. Am I missing something? Can you possibly post these insturctions? I need to create a donate button for our non-profit website that allows for recurring donations. I'd like to let our supporters choose their own amount, but listing options would be okay too. Thanks!

Login to Me Too

Quandary
Advisor
Advisor

You would need to manually code what you have in mind as this cannot be done via the button generator because it requires some custom scripting.  Note, there is always more than one way to get to where you want to go.  Perhaps this example will give you a few ideas:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
  <title></title>
</head>
<body>





This is a Donation Exampe based on Subscription Code.
<br><br>


<SCRIPT language=javascript>
function CalculateOrder(form)
{

if (form.os0.value == "Level 1 - $100 per year")
 {
 form.a3.value = 100.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L1-YM";
 }
 
if (form.os0.value == "Level 2 - $200 per year")
 {
 form.a3.value = 200.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L2-YM";
 }
 
if (form.os0.value == "Level 3 - $300 per year")
 {
 form.a3.value = 300.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L3-YM";
 }

if (form.os0.value == "Level 4 - $400 per year")
 {
 form.a3.value = 400.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L4-YM";
 }  
 
if (form.os0.value == "Level 5 - $500 per year")
 {
 form.a3.value = 500.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L5-YM";
 } 

if (form.os0.value == "Level 6 - $600 per year")
 {
 form.a3.value = 600.00;
 form.t3.value = "Y";
 form.p3.value = 1;
 form.src.value = 1;
 form.sra.value = 1;
 form.item_name.value = "Yearly Membership"
 form.item_number.value = "L6-YM";
 }
 
if (form.os0.value == "One Time Donation")
 {
 form.t3.value = "D";
 form.item_name.value = "One Time Donation"
 form.item_number.value = "OTD";
 }  
}  
</SCRIPT>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="on0" value="Subscription Option">Select your Donation Option:&nbsp;&nbsp;
<select name="os0">
<option value="Level 1 - $100 per year">Level 1 - $100 per year</option>
<option value="Level 2 - $200 per year">Level 2 - $200 per year</option>
<option value="Level 3 - $300 per year">Level 3 - $300 per year</option>
<option value="Level 4 - $400 per year">Level 4 - $400 per year</option>
<option value="Level 5 - $500 per year">Level 5 - $500 per year</option>
<option value="Level 6 - $600 per year">Level 6 - $600 per year</option>
<option value="One Time Donation">One Time Donation</option>
</select>
<br><br><br>

<!--  -->
Select "One Time Donation".
<br>
Enter the amount you would like to donate:&nbsp;&nbsp;$
<!-- a3, Required, Regular Subscription Price -->
<input type="text" name="a3" size="4" maxlength="7">

<br><br>

<INPUT onclick=CalculateOrder(this.form) type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.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">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="your_paypal_email_address.com">
<input type="hidden" name="item_name">
<input type="hidden" name="item_number">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="http://www.yoursite.com/success.html">
<input type="hidden" name="cancel_return" value="http://www.yoursite.com/cancel.html">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-SubscriptionsBF">
<!-- <input type="hidden" name="a3"> -->
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3">
<input type="hidden" name="src">
<input type="hidden" name="sra">
</form>


</body>
</html>

Login to Me Too

Haven't Found your Answer?

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