2007
Table Of Contents
- Name-Value Pair API Reference for Germany
- Preface
- Overview
- Accepting PayPal in Express Checkout
- Basic Checkout with PayPal
- Support giropay and electronic funds transfer
- Controlling the Shipping Address Using SetExpressCheckout
- Changing the Language on the PayPal Login Page Using SetExpressCheckout
- Changing the Logo on the PayPal Pages Using SetExpressCheckout
- Form-Filling Your Payment Review Page Using GetExpressCheckoutDetails
- Making a Sale Using DoExpressCheckoutPayment
- Changing the URL for IPN Using DoExpressCheckoutPayment
- Including Line Item Details Using DoExpressCheckoutPayment
- Including Subtotals Using DoExpressCheckoutPayment
- Updating Order Details Using DoExpressCheckoutPayment
- Updating the Shipping Address Using DoExpressCheckoutPayment
- Back-Office Administration
- NVP API Method and Field Reference
- Error Message Reference
- NVP API Web Samples
- The Java SDK
- The ASP.NET SDK
- Country Codes
- Index
Accepting PayPal in Express Checkout
Controlling the Shipping Address Using SetExpressCheckout
2
22 April 2007 Name-Value Pair API Developer Guide and Reference
GetExpressCheckoutDetails does not return the shipping address.
Overriding the Shipping Address Stored on PayPal
To override the shipping address stored on PayPal, call SetExpressCheckout to set
ADDROVERRIDE to 1 and set the shipping address fields (see Table A.3, “Ship to Address
(Optional)”).
The customer cannot edit the address if it has been overridden.
GetExpressCheckoutDetails returns the overridden shipping address.
EXAMPLE 2.2 GetExpressCheckoutDetails
Request
[requiredSecurityParameters]
&METHOD=GetExpressCheckoutDetails&
TOKEN=EC-17C76533PL706494P
Response
[successResponseFields]
&TOKEN=EC-
17C76533PL706494P&EMAIL=abcdef@anycompany.com&PAYERID=95HR9CM6D56Q2&
PAYERSTATUS=verified&FIRSTNAME=John&LASTNAME=Smith&COUNTRYCODE=US&
ADDRESSID=PayPal&ADDRESSSTATUS=None
EXAMPLE 2.3 Overriding the Shipping Address
Request
[requiredSecurityParameters]
&METHOD=SetExpressCheckout&AMT=10.00&
RETURNURL=https://www.anycompany.com/orderprocessing/orderreview.html&
CANCELURL=https://www.anycompany.com/orderprocessing/shippinginfo.html
&SHIPTONAME=Peter+Smith&
SHIPTOSTREET=144+Main+St.&SHIPTOCITY=SAN+JOSE
&SHIPTOSTATE=CA&SHIPTOCOUNTRYCODE=US&SHIPTOZIP=99911&
ADDROVERRIDE=1
Response
[successResponseFields]
&TOKEN=EC-17C76533PL706494P
EXAMPLE 2.4 GetExpressCheckoutDetails
Request
[requiredSecurityParameters]
&METHOD=GetExpressCheckoutDetails&TOKEN=EC-
17C76533PL706494P
Response
[successResponseFields]
&TOKEN=EC-17C76533PL706494P&
PAYER=abcdef@anycompany.com&PAYERID=95HR9CM6D56Q2&PAYERSTATUS=verified&
FIRSTNAME=John&LASTNAME=Smith&
COUNTRYCODE=US&SHIPTONAME=Peter+Smith&SHIPTOSTREET=144+Main+St.&
SHIPTOCITY=SAN+JOSE&SHIPTOSTATE=CA&SHIPTOCOUNTRYCODE=US&SHIPTOZIP=95112&
ADDRESSID=PayPal&ADDRESSSTATUS=Unconfirmed