Prepares a new order flow and returns a unique orderToken to the Merchant
In this stage of the checkout process, the user has not yet selected a payment method. In order to configure the checkout "Continue" button on the checkout page after the customer selects Caddi as the payment method, you should call the Create Order API endpoint with the following information:
- Purchase amount (excluding tax and shipping)
- Tax amount
- Shipping amount
- Customer details
- Customer billing address
- Customer shipping address
- Cart item details
Caddi will respond with a special token that uniquely identifies this customer checkout, referred to from here on as the orderToken
. The orderToken
is then used in conjunction with the Caddi.js JavaScript library to configure a button on the checkout page to launch the Caddi popup workflow.
During the Caddi popup workflow process, the Merchant website will be overlaid with a semi-transparent dark overlay encouraging the customer to focus on the popup window.