Working example: SSO in cart
GET {{baseUrl}}/customers/:CReference/cart/?Url=<string>&Lang=<string>&ValidityTime=<string>&ValidationIp=<string>
Generate tokenized payment links for returning customers, and display their previously used credit cards in the shopping cart, along with their prefilled billing information. 2Checkout attaches a unique token to links, designed to identify the returning shoppers and support the automatic extraction of payment data and billing information from the 2Checkout system. For example, you can generate single sign on in cart links for existing customers logged into your website based on
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
Url | string | The specific shopping cart page you want the user to be redirected to. | |
Lang | string | ISO language codes for the product - ISO 639-1. | |
ValidityTime | string | The time, in seconds, before the single sign-on URL expires. By default, the URL expires after 10 seconds. | |
ValidationIp | string | The IP address of the shopper, necessary for security purposes. Can be an empty string or a valid IP, or null. |