Non-profit account

WebChick
New Community Member

I am setting up a non-profit for accepting 3 types of payments:  donation, in memory, and in honor of.  There is a "write a note" option in Pay Pal, but at this time it's (optional).  Is there a way to make that not optional?  Thank you.

 

Login to Me Too
1 REPLY 1

Anonymous_User
Not applicable

Unfortunately you cannot edit or change certain aspects of the PayPal Check Out Screens however, there are ways to create required input fields.   As the online button creator has it's limits, it was intended for creating easy quick code, the work around is to manually create your own code and by including a custom script, you can create a button with required fields to collect the additional info.  There's also a second small issue - the actual command for the Donation button code does not work with the option variables (on0, os0, on1, os1, etc.) as you need these variables to collect and past the details to the PayPal Checkout Screens.   One method to get through this maze is to use the Buy Now command as it can use the option variables.  The trade off when using the Buy Now command is that you won't see the "Purpose" or "Donation Amount" headers on the PayPal Screens.  However, if you include a description in the item_name field (like:  "Widget Donation" for example), then your donors and you know what's going on.  Also you can swap the button graphics from Buy Now to Donation.

 

For learning purposes, see the example below - this should give you a few ideas moving forward.

 

<!doctype html>
<html lang="en">
<head>

<title>Button 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 type="text/javascript">
<!--
function CheckForm(obj1) { 

 if (obj1.amount.value == ""){
  alert ("You must fill in a value for the Amount!");
  return false;
 }
 if (obj1.os0.value == ""){
  alert ("You must fill in a value for Option 1!");
  return false;
 }
 else if (obj1.os1.value == ""){
  alert ("You must fill in a value for Option 2!");
  return false;
 }
 else if (obj1.os2.value == ""){
  alert ("You must fill in a value for Option 3!");
  return false;
 }
 else if (obj1.os3.value == ""){
  alert ("You must fill in a value for Option 4!");
  return false;
 }
 return true;
}
//-->
</script>
<!-- End of Script -->


</head>


<body>

<!-- Start of Button Form -->

Widget Donation Project

<br><br>
 
<form name="paypal" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="return CheckForm(this);">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Donation Project">
<input type="hidden" name="item_number" value="WDP-10001">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF:btn/btn_donateCC_LG.gif:NonHosted">
            

Please Enter Amount - Example: 5.00 &#160;&#160;
<input name="amount" type="text" id="amount" size="5">

<br><br>
<input type="hidden" name="on0" value="Option1">
Text Option 1:&#160;&#160; <input type="text" name="os0" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on1" value="Option2">
Text Option 2:&#160;&#160; <input type="text" name="os1" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on2" value="Option3">
Text Option 3:&#160;&#160; <input type="text" name="os2" value="">
&#160;(required)

<br><br>
<input type="hidden" name="on3" value="Option4">
Text Option 4:&#160;&#160; <input type="text" name="os3" value="">
&#160;(required)

<br><br>
<input type="image" src="https://www.paypal.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">
</form>
<!-- End of Buy Now Button 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.