Subscription Apps
Purchase Click
When the user clicks on a button it may start the purchase.
This is not the after-purchase event so a user may terminate the purchase flow.
Properties
Name | Type | Required | Description |
amount | Amount | Yes | Amount object with |
packID | String | Yes | Id of the pack |
items | Array of Premium Item | Yes | List of items (if specific items were purchased) |
coupon | Coupon | No | Coupon if applied |
Code Example
The following example includes optional properties too.
Consumable Purchase
When the user purchases a consumable content/item.
Properties
Name | Type | Required | Description |
amount | Amount | Yes | Amount object with |
packID | String | Yes | Id of the pack |
items | Array of Premium Item | Yes | List of items (if specific items were purchased) |
transactionID | String | Yes | TransactionId of the user purchase |
coupon | Coupon | No | Coupon if applied |
Code Example
The following example includes optional properties too.
Subscribe
When the user purchases a consumable content/item.
Properties
Name | Type | Required | Description |
amount | Amount | Yes | Amount object with |
packID | String | Yes | Id of the pack |
items | Array of Premium Item | Yes | List of items (if specific items were purchased) |
transactionID | String | Yes | TransactionId of the user purchase |
type | String | Yes | subscription period like WEEKLY, MONTHLY, YEARLY. |
coupon | Coupon | No | Coupon if applied |
Code Example
The following example includes optional properties too.