onCheckoutCreated( )


An event that triggers when a new checkout is created. For example, when a checkout is created from a cart or after using createCheckout().

The onCheckoutCreated() event handler runs when a new checkout is created. The received CheckoutCreated object contains information about the checkout that was created and event metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventCheckoutCreated

Information about the checkout that was created and event metadata.

An event fired when a checkout is created
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?