An event that triggers when an order is approved.
The onOrderApproved()
event handler runs when an order is created and its status is updated to "APPROVED"
. The received OrderApprovedEvent
object contains information about the order that was approved and event metadata.
Note: Backend events don't work when previewing your site.
Information about the order that was approved and metadata for the event.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.