Triggered when an order is created.
function onOrderCreated(handler: function): void;
handler(event: OrderCreatedEnvelope): void | Promise<void>
import { orders } from "@wix/pricing-plans";
orders.onOrderCreated((event) => {
// handle your event here
});