purchaseStart

public boolean purchaseStart(    String orderId,     Number numItems,     Number amount,     String paymentType,     Map<String, Object> properties)

Starts a purchase moment.

This method should be called as soon as the user indicates an intent to purchase the items in their cart. This means that all information pertaining to the order (e.g. billing, payment, shipping) should already be known prior to invoking this method.

Return

True if the operation was successful; false otherwise.

Parameters

orderId

The ID that represents the purchase order. This value is optional and, if present, will associate the value as a property of the moment.

numItems

The number of items in the purchase order. This value is optional and, if present, will associate the value as a property of the moment.

amount

The total amount of the purchase order. This value is optional and, if present, will associate the value as a property of the moment.

paymentType

The payment system that will be fulfilling the purchase order (e.g. Google IAB, PayPal, BrainTree). This value is optional and, if present, will associate the value as a property of the moment.

properties

A map of Strings to Objects that represent additional properties to associate with the moment. This value is optional. A maximum of 10 properties (not including the ones set via arguments to this method) may be set.