Note: This method registers a callback function as an event handler. Subscribe your app to the relevant event via the Webhooks page in the Wix Dev Center to enable it. For more information, see Handle Events With Webhooks.
Triggered for any of the following update events:
Order is paid for. Order Purchased is also triggered.
Order reaches its start date or end date. Order Started and Order Ended, respectively, are also triggered.
New payment cycle of an order starts. Order Cycle Started is also triggered.
Offline order is marked as paid. Order Marked As Paid is also triggered.
End date of the order is postponed. Order End Date Postponed is also triggered
Order is paused, or a paused order is resumed. Order Paused and Order Resumed, respectively, are also triggered.
Order is canceled, either immediately or at the end of the payment cycle. Order Canceled and Order Auto Renew Canceled, respectively, are also triggered.