This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a payment or refund is added to an order, or when an existing payment is updated.
The onOrderTransactionsUpdated()
event handler runs when a new a payment or refund is added to an order, or when an existing payment is updated. The received OrderTransactionsUpdated
object contains information about the updated order transactions, and event metadata.
Note: Backend events don't work when previewing your site.
function wixEcom_onOrderTransactionsUpdated(
event: OrderTransactionsUpdated,
): void;
Information about the transaction that was updated and event metadata.
export function wixEcom_onOrderTransactionsUpdated(event) {
const eventId = event.metadata.id;
const entityId = event.entity._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.