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.
The purchase data.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.