createCheckoutFromCurrentCart( )
Creates a checkout from the current site visitor’s cart.
The createCheckoutFromCurrentCart()
function returns a Promise that resolves to the new checkout's ID when it's created.
If a checkout was already created from the current cart, that checkout will be updated with any new information from the cart.
Note: options.channelType
is a required field.
Permission Scopes
For app development, you must have one of the following permission scopes:Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
optionsCreateCheckoutFromCurrentCartOptions
Checkout creation options.
Returns
Return Type:Promise<CreateCheckoutResponse>
Was this helpful?
Yes
No