Requesting Services : Set Service

Set Service
The ics_paypal_ec_set service:
After ics_paypal_ec_set 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 Traditional Express Checkout and 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 paypal_return. If the customer cancels the transaction, the customer is redirected to the return URL in the field paypal_cancel_return.
Multiple Calls to the Set Service
If, after the first call to ics_paypal_ec_set, the customer realizes the shipping address is incorrect, you can let the customer enter a different shipping address and then you can call ics_paypal_ec_set again as a follow-on service.
 
After each call to ics_paypal_ec_set, 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 ics_paypal_ec_set, you must include the following fields in the request:
For calls to ics_paypal_ec_set after the first call, the following fields are also required:
For calls to ics_paypal_ec_set 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.