Purchaser/Buyer address needed

SummerMusic
Contributor
Contributor

We need to obtain each purchasers shipping address after a payment is made. How can we insure this happens? Right now, it's not. 

Not sure what other info is needed here.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="LLXXH72Q2PRHJ">

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

</form>

Login to Me Too
1 REPLY 1

Anonymous_User
Not applicable

On the Checkout Screen, there's an option for the Donor to share their mailing address with you however, they have to check the box - you cannot force this as it's up to the donor to decide.

 

The problem with the Donation item button code is that you cannot take advantage of the option variables (on0, os0, on1, os1, etc.) to pass any additional data to the PayPal Checkout screens.   The work around is use the Buy Now item button code - in addition, you can "manually" code the button to not only use the option variables but, include a script to manage the text input fields so the information you need will be required - that way you will get the info you need.  Because this method does not use the actual command for Donations, you won't see the "Purpose" or "Donation Amount" headers on the PayPal Screens.  For learning purposes, below is an example of how this can be done.

 

<!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 addres">
<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.