Search.../

onOrderCreated( )

Developer Preview

Triggered when an order is created.

Syntax

function wixPricingPlans_onOrderCreated(event: OrderCreated): void

onOrderCreated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
OrderCreated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onOrderCreated example

Copy Code
1
2 export function wixPricingPlans_onOrderCreated(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7