Requesting Services : Set Service

Set Service
The payPalEcSetService service:
After payPalEcSetService returns, you must redirect your customer’s browser to the PayPal web site.
Redirection URLs
PayPal has a specific URL for each of the two Express Checkout customer experience flows.
Traditional Express Checkout Redirection URL
For Traditional Express Checkout, use the following URL and append the value of the PayPal token:
https://www.paypal.com/cgibin/webscr?cmd=_express-checkout&token=
Therefore, if the PayPal token is EC-4WL17777V4111184H, you will redirect this customer’s browser to:
https://www.paypal.com/cgibin/webscr?cmd=_express-checkout&token=EC‑4WL17777V4111184H
For more information on Traditional Express Checkout, see Traditional Express Checkout Flow.
In-Context Express Checkout Redirection URL
For In-Context Express Checkout, use the following URL and append the value of the PayPal token:
https://www.paypal.com/checkoutnow?&useraction=commit&token=
Therefore, if the PayPal Token is EC-4WL17777V4111184H, you will redirect this customer’s browser to:
https://www.paypal.com/checkoutnow?&useraction=commit&token=EC-4WL17777V4111184H
For more information on In-Context Express Checkout, see In-Context Express Checkout Flow.
At the PayPal site, the customer can review and either approve or cancel the transaction. If the customer approves the transaction, the customer is redirected to the return URL in the field payPalEcSetServicePaypalReturn. If the customer cancels the transaction, the customer is redirected to the return URL in the field payPalEcSetServicePaypalCancel
Return.
Multiple Calls to the Set Service
If, after the first call to payPalEcSetService, the customer realizes the shipping address is incorrect, you can let the customer enter a different shipping address and then you can call payPalEcSetService again as a follow-on service.
 
After each call to payPalEcSetService, you must redirect the customer’s browser to the PayPal web page, appending the PayPal token to the URL listed above.
Required Fields
When you request payPalEcSetService, you must include the following fields in the request:
For calls to payPalEcSetService after the first call, the following fields are also required:
For calls to payPalEcSetService that initiate the creation of a billing agreement, include the following fields:
Additional fields are optional. The required and optional fields are described in Appendix A, API Fields.