PayPal Express Checkout - 2013 Guide de l'utilisateur Page 13

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 96
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 12
Express Checkout for Payflow 13
Express Checkout Processing Flow
Express Checkout Sale Transaction Example
1
RETURNURL
CANCELURL
This is an example Set Express Checkout request for a Sale transaction:
TRXTYPE=S
&ACTION=S
AMT=35.00
&CANCELURL=http://www.order_page.com
&CUSTOM=TRVV14459
&EMAIL=buyer[email protected]
&PARTNER=partner
&PWD=password
&RETURNURL=http://www.confirmation_page.com
&TENDER=P
&USER=user
&VENDOR=vendor
NOTE: It is strongly recommended that RETURNURL be the URL of the final review page on
your website where the buyer confirms the order and payment. Likewise, CANCELURL
should be the URL of the original page on your website where the buyer initially chose
to use PayPal.
This is a response to the request:
RESULT=0
&RESPMSG=Approved
&TOKEN=EC-17C76533PL706494P
RESULT and RESPONSE values are returned with all transactions. In a successful response, the
value of RESULT is 0. For details on the set of response parameters generally passed back in
transactions, see
Chapter 4, “Transaction Responses.” The TOKEN value returned associates
this buyer with this particular Express Checkout flow.
Redirecting the Buyer to PayPal
After your buyer clicks the PayPal button and you submit the Set Express Checkout request,
you will want to automatically direct your buyer to the PayPal website. The redirect URL for
this is:
https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=<TOKEN>
TOKEN is the value returned in the Set Express Checkout response.
NOTE: Express Checkout has a variation on this redirect URL (called useraction) that
allows you to bypass the call to
Get Express Checkout Details and to change the text of
the button displayed on the PayPal website from “Continue” to “Pay Now.” For more
information, see
“Eliminating Your Order Review Page” on page 17.
PayPal recommends that you use the HTTPS response 302 “Object Moved” with your URL as
the value of the Location header in the HTTPS response. Alternately, you can generate a web
page for your buyer that includes a META REFRESH tag in the header. An example is shown
Vue de la page 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 95 96

Commentaires sur ces manuels

Pas de commentaire