onPlanArchived( )


Notes:

Triggered when a pricing plan is archived.

Permissions
Manage Pricing Plans
Read Pricing Plans
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function onPlanArchived(handler: function): void;
Method Parameters
handlerfunction

handler(event: PlanArchivedEnvelope): void | Promise<void>

JavaScript
import { plans } from "@wix/pricing-plans"; plans.onPlanArchived((event) => { // handle your event here });
Did this help?