subscriptionPurchaseStart

public boolean subscriptionPurchaseStart(    String orderId,     String subscriptionType,     Number amount,     String paymentType,     Map<String, Object> properties)

Starts a subscription purchase moment.

This method should be called as soon as the user indicates an intent to purchase a subscription. This means that all information pertaining to the purchase (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 subscription purchase order. This value is optional and, if present, will associate the value as a property of the moment.

subscriptionType

The recurrence factor (e.g. monthly, annual) of the subscription purchase. This value is optional and, if present, will associate the value as a property of the moment.

amount

The total amount of the subscription purchase. 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 subscription purchase (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.