The ics_paypal_ec_set service:
nAlerts PayPal that an order is going to occur.
nReturns a session token.
After ics_paypal_ec_set returns, you must redirect your customer’s browser to the PayPal web site.
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.
|
The PayPal Sandbox URL for confirming CAS/Sandbox payments is: https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token= As with the production URL, you need to append your PayPal token to the end of the URL. |
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.
|
If you are using Cybersource Decision Manager, do not allow customers to change their shipping addresses in the PayPal portion of the session. |
|
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. |
When you request ics_paypal_ec_set, you must include the following fields in the request:
nics_applications
nmerchant_id
nmerchant_ref_number
ncurrency
ngrand_total_amount or at least one offer line with an amount field
|
To enable offer-level fields, contact Cybersource Customer Support to have your account configured for this feature. For important information about offers and subtotals, see Requirements for the Subtotal. |
npaypal_return
npaypal_cancel_return
For calls to ics_paypal_ec_set after the first call, the following fields are also required:
npaypal_ec_set_request_id
npaypal_ec_set_request_token
For calls to ics_paypal_ec_set that initiate the creation of a billing agreement, include the following fields:
npaypal_billing_type (required)
npaypal_billing_agreement_desc (optional)
npaypal_billing_agreement_custom (optional)
npaypal_payment_type (optional)
Additional fields are optional. The required and optional fields are described in API Fields.