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.
Information about the order that ended and metadata for the event.