Triggered when an order is canceled and effectiveAt
is set to NEXT_PAYMENT_DATE
.
This webhook is not triggered in the following scenarios:
effectiveAt
is set to IMMEDIATELY
. Instead, at the time of cancellation, Order Canceled is triggered.effectiveAt
was set to NEXT_PAYMENT_DATE
. Instead, at the time of expiration, Order Canceled and Order Ended are triggered.function onOrderAutoRenewCanceled(handler: function): void;
handler(event: OrderAutoRenewCanceledEnvelope): void | Promise<void>
import { orders } from "@wix/pricing-plans";
orders.onOrderAutoRenewCanceled((event) => {
// handle your event here
});