onPlanCreated( )


Notes:

Triggered when a pricing plan is created.

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

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

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