An event that triggers when a checkout is completed. This happens either when an order is created from a checkout, or after using markCheckoutAsCompleted()
.
The onCheckoutCompleted()
event handler runs when a checkout is completed. The received CheckoutCompleted
object contains information about the checkout that was completed and event metadata.
Note: Backend events don't work when previewing your site.
Information about the checkout that was completed and event metadata.