How to Change Donation Default Amounts

ETFishman
Contributor
Contributor

We have a donate button that works great, but the checkout page lists donation amounts that we would like to change.  How do we change them?  Thank you!

Login to Me Too
1 REPLY 1

Anonymous_User
Not applicable

If you're getting the PayPal Donation Screen with fixed amounts being displayed, seems at the present, there's no way to edit those amounts.   (Maybe someone else has found a way.)   One optional work around is to manually create a Donation item button with the amounts you would like to offer.  For example, you could us radio buttons with the amount and also offer the option of any amount.  Note, the use of radio buttons can be done using a script or without a script.  Scripts are nice as you can pass additional details to the Check Out Screens.   (You could also create a drop down selection if that look is desired.)   For learning purposes, below is an example that uses a script to manage the radio button choice. 

 

<!DOCTYPE html>
<html lang="en">

<head>

<title>Radio Button Donation Example</title>

<!-- START META TAG SECTION -->
<meta name="Description" content="">
<meta name="KeyWords" content="">
<meta charset="UTF-8">
<!-- END META TAG SECTION -->



<!-- Start of Script -->
<script language="javascript">

function CalculateOrder(form){
 var radG1;
 
for (var i = 0; i < document.myform.item_name.length; i++){
 if(document.myform.item_name[i].checked==true){radG1=document.myform.item_name[i].value;}
}


if(radG1 == "$5.00 Donation")
 {
 document.myform.amount.value = '5.00';
 document.myform.item_name.value = "$5.00 Donation";
 document.myform.item_number.value = "WD-05";
 }
else if(radG1 == "$10.00 Donation")
 {
 document.myform.amount.value = '10.00';
 document.myform.item_name.value = "$10.00 Donation";
 document.myform.item_number.value = "WD-10";
 }
else if(radG1 == "$15.00 Donation")
 {
 document.myform.amount.value = '15.00';
 document.myform.item_name.value = "$15.00 Donation";
 document.myform.item_number.value = "WD-15";
 }
else if(radG1 == "$20.00 Donation")
 {
 document.myform.amount.value = '20.00';
 document.myform.item_name.value = "$20.00 Donation";
 document.myform.item_number.value = "WD-20";
 }
else if(radG1 == "Entered Amount")
 {
 document.myform.amount.value = '';
 document.myform.item_name.value = "Entered Amount";
 document.myform.item_number.value = "WD-00";
 }   
}
// -->
</script>
<!-- End of Script -->

</head>

<body>

<!-- START SAMPLE CODE SECTION -->


<!-- PARAGRAPH 1 -->

Widget Donations

<br><br>

<!-- Start of Donation Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post" name="myform">

Choose Option:
<br><br>
<input name="item_name" type="radio" value="$5.00 Donation">$5.00
<br><br>
<input name="item_name" type="radio" value="$10.00 Donation">$10.00
<br><br>
<input name="item_name" type="radio" value="$15.00 Donation">$15.00
<br><br>
<input name="item_name" type="radio" value="$20.00 Donation">$20.00
<br><br>
<input name="item_name" type="radio" value="Entered Amount">Enter Amount on Screen
<br><br><br>

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" onClick="CalculateOrder(this.form)" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
<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="item_number">
<input type="hidden" name="item_name"> 
<input type="hidden" name="amount"> 
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US"> 
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted">
</form> 
<!-- End of 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.