event trigger for onPlanCanceled?

Hi Ben,

You can use the onPlanPurchased( ) event handler to check the status of the plan, so you can remove the member privileges when their plan expired or cancelled.

export function wixPaidPlans_onPlanPurchased(event) {
    const status = event.order.status.toLowerCase();
    if (status === 'canceled' || status === 'expired') {
        // handle the case where the plan is canceled or expired
    }    
}

Hope this helps~!
Happy Coding :fire:
Ahmad