Purchase Completed Event

To report an event when a customer completes a purchase.

Function Interface

events.purchaseCompleted(eventParameter:PurchaseCompletedEventParameter)

PurchaseCompletedEventParameter

ParameterTypeRequiredDescription
currencystring✔The store currency, following the ISO 4217 standard.
totalAmountstring✔The total value of the viewed products.
itemsItem[]✔The items in the cart. Refer to the Item resource page for details.
orderIdstring✔The unique identifier of the order.

Example

preparing...