Initiate Checkout

Triggered when the ‘Checkout’ button is clicked.

Properties:

NameTypeDescription
contentsarrayAll products in cart
contents.idtextProduct ID
contents.nametextProduct name
contents.categorytextCollection name
contents.varianttextSelected choice from 1st product option
contents.pricecurrencyProduct price
contents.currencycurrencyCurrency in ISO-4217 format
contents.quantitynumberQuantity of product added to cart
origintextWix App name, i.e Stores, Bookings
isPremiumbooleanWhether the Wix site is Premium
userIdtextUser ID
metaSiteIdtextWix site ID

Example:

Copy
1
{
2
"contents": [{
3
"id": "df19c1f7-07d8-a265-42f8-e8dfa824cc6e",
4
"name": "Soundbeam ERD - 3083",
5
"category": "All Products",
6
"price": 220,
7
"currency": "ILS",
8
"quantity": 1
9
}],
10
"length": 1,
11
"origin": "Stores",
12
"isPremium": true,
13
"userId": "79f246a8-46fd-4429-aac6-006d13cce9a6",
14
"metaSiteId": "e4d85293-d205-48d0-93d4-3ed7b91b9549"
15
}
Was this helpful?
Yes
No