Creates a checkout.
The createCheckout()
function returns a Promise that resolves to the new checkout when it's created.
Notes:
options.lineItems
array.options.channelType
is required._id
for options.lineItems
is added, make sure that each _id
is unique.options.checkoutInfo.customFields
are added, then options.checkoutInfo.customFields.value
is required.This function requires elevated permissions and runs only on the backend and on dashboard pages.
Checkout creation options.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.