One click (1-click) purchase
2Checkout supports 1-click purchases for returning customers who paid for their previous orders with:
Credit/Debit cards
PayPal
iDEAL
Alipay
UnionPay
Requirements
Use only references to previous orders with one of the following statuses AUTHRECEIVED or COMPLETE.
The email address of the
BillingDetailsobject is mandatory and it needs to match the email address used as a part of the billing details of the initial order whose reference you're now using to place a new order. 2Checkout checks whether the email addresses are identical, and throws an error if they're not, blocking the order placement process.For orders paid with PayPal, the original order must have automatic renewal enabled so that it can be reused for future 1-click purchases.
Request parameters
sessionID
Required (string)
Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect. The sessionID expires in 10 minutes.
Required (object) Object designed to collect all data necessary for an order, including billing, product/subscription plan and payment details.
Request sample
Validate previous order reference
Place an order using previous order reference
Response parameters
Order information
Object Object containing order information.
Last updated
Was this helpful?