Must require address for Donations

Silveira
New Community Member

We are required to report donor's addresses, but aren't able to collect donor's addresses when accepting online donations using Paypal. Is there a workaround for this?

Login to Me Too
2 REPLIES 2

Snow-Cat
Advisor
Advisor

There is a work around - as the online button maker for Donations has it's constraints meaning it does not have the options for including text fields (or the option variables) to collect additional data, you can use the code or command for a Buy Now item button.  The downside of doing this is you won't see the Donation headers on the PayPal Checkout Screens.   Also, you cannot force the donor to provide the address info you need if you use the button maker to create the text input fields however, if you "manually" create the code with a script to manage the text input, then the donor cannot proceed to the Checkout Screens unless all the required input is entered.   If you're into tweaking code, below is a Buy Now example that shows what can be done.  You'll need to replace the "business" variable value with your PayPal email address or your PayPal Merchant Account ID (recommended), then you can test the code.  As with any computer related suggestion, there's always more than one way to do something, this is just one of many possible ways.

 

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

<head>
  <title></title>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8">

<!-- 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;
 }
 else 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">
<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="return" value="http://www.yourwebsite.com/thankyou.html">
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/cancel.html">
<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 &nbsp;&nbsp;
<input name="amount" type="text" id="amount" size="5">&nbsp;&nbsp;(required)

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

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

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

<br><br>
<input type="hidden" name="on3" value="Option4">
Text Option 4:&nbsp;&nbsp; <input type="text" name="os3" value="">
&nbsp;(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 Button Form -->

</body>
</html>
Login to Me Too

RadioQueTal
Contributor
Contributor

Thanks! I was afraid that might be the answer.

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.