PayPal Name-Value Pair API - 2007 Instrukcja Użytkownika Strona 22

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 127
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 21
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
Przeglądanie stron 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 126 127

Komentarze do niniejszej Instrukcji

Brak uwag