onPlanPurchased( )

An event that triggers when a member purchases a plan.

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.

Was this helpful?
Yes
No