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 purchase events:
Order is paid in full.
At least 1 order cycle payment is paid for.
Offline order is created, even if not yet marked as paid.