Integration Guide

Express Checkout ~ Integration Overview
8/16/2013 Page 12 of 18
Although the default payment action is a Sale, it is a best practice to
explicitly specify the payment action as one of the following values:
PAYMENTREQUEST_0_PAYMENTACTION=Sale
PAYMENTREQUEST_0_PAYMENTACTION=Authorization
PAYMENTREQUEST_0_PAYMENTACTION=Order
Execute the SetExpressCheckout API operation to set up the Express
Checkout transaction.
Test that the response to the SetExpressCheckout API operation was
successful (ACK=Success).
If calling the SetExpressCheckout API was successful, redirect the
consumer's browser to PayPal and execute the _express-checkout
command using the token returned in the SetExpressCheckout response.
Obtaining the Express Checkout Transaction Details
To obtain details about an Express Checkout transaction, you can invoke the
GetExpressCheckoutDetails API operation.
NOTE: This example assumes that PayPal redirects to your buyer's browser with a valid
token after the consumer reviews the transaction on PayPal.
Although you are not required to invoke the GetExpressCheckoutDetails
API operation, most Express Checkout implementations take this action to
obtain information about the buyer.
You invoke the GetExpressCheckoutDetails API operation from the page
specified by return URL, which you set in your call to the
SetExpressCheckout API.
Typically, you invoke this operation as soon as the redirect occurs and use
the information in the response to populate your review page.
To obtain a buyer's shipping address and Payer ID, specify the token
returned by PayPal when it redirects the consumer's browser to your site.
PayPal returns the token to use in the token HTTP request parameter when
redirecting to the URL you specified in your call to the SetExpressCheckout
API.
TOKEN=tokenValue
Execute the GetExpressCheckoutDetails API operation to obtain
information about your buyer.
Access the fields in the GetExpressCheckoutDetails API response.