onOrderEnded( )


An event that triggers when an order expires or is canceled immediately.

The onOrderEnded() event handler runs when an order expires. The received OrderEndedEvent object contains information about the order that expired.

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

Method Declaration
Copy
Method Parameters
eventOrderEndedEventRequired

Information about the order that ended and metadata for the event.

Errors

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

Did this help?