onPlanPurchased( )


An event that triggers when a member purchases a plan.

Deprecated. This event has been deprecated, use the onOrderPurchased() event instead. The onPlanPurchased() event handler runs when a member purchases a pricing plan. The received PlanPurchasedEvent object contains order information about the plan, such as order ID, until when the order is valid, and so on.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPlanPurchasedEventRequired

The purchase data.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?