Integration Guide

Table Of Contents
Website Payments Standard Checkout Integration Guide November 2005 95
Website Payments Standard HTML FORM Basics
Overriding PayPal-Stored Addresses
7
<input type=”hidden” name=”addres s2” value=”Apt 5”>
<input type=”hidden” name=”city ” value=”Berwyn”>
<input type=”hidden” name=”state ” value=”PA”>
<input type=”hidden” name=”zip ” value=”19312”>
<input type=”hidden” name=”night_ phone_a” value=”610”>
<input type=”hidden” name=”night_ phone_b” value=”555”>
<input type=”hidden” name=”night_ phone_c” value=”1234”>
<input type=”image” SRC=”http://images.paypal.com/images/x-click-but01.gif”
border=”0” name=”submit” alt=”Make payments with PayPal - it’s fast, free and
secure!”>
</form>
Overriding PayPal-Stored Addresses
For customers who already have PayPal accounts and whom you already prompted for a
shipping address before they choose to pay with PayPal, you can use the entered address
instead of the address the customer has on file with PayPal. Set the address_override
variable to 1, as in the following example:
<INPUT TYPE=”hidden” name=”address_override” value=”1”>
You must also include FORM variables that contain the customer’s address information, as
detailed in Table A.7, “HTML Variables: Prepopulating PayPal FORMs or Address
Overriding” on page 103.
The customer is shown the passed-in address but cannot edit it. No address is shown Iif the
address is not valid, such as missing required fields, including country, or if the address is not
included at all.
Sample HTML for Overriding PayPal-Stored Shipping Addresses
The following HTML shows the address_override variable in conjunction with the
prepopulation variables for overriding a customer’s PayPal-stored shipping address.
EXAMPLE 7.2 HTML for Overriding PayPal-Stored Address
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="seller@designerfotos.com">
<input type="hidden" name="item_name" value="Memorex 256MB Memory Stick">
<input type="hidden" name="item_number" value="MEM32507725">
<input type="hidden" name="amount" value="3">
<input type="hidden" name="tax" value="1">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<!--
Override the customer’s stored PayPal address
-->