onOrderStarted( )


Notes:

Triggered when an order reaches its startDate. Applies to both purchased and free orders.

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

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

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