Skip to content

In App Billing

Non-Visible component
Category Requires Version
Monetization > General API 21, Android 5.0 Lollipop 2

Overview

A non-visible component that lets the user purchase items, powered by Google''s In-App Purchases service.

Permissions

Events

After Purchase

After purchase event.

Param Type
product Id Text

Consumed

When product is consumed.

Param Type
success Boolean
product Id Text

Error Occurred

Error occurred event.

Param Type
message Text

Got Owned Purchases

Got Owned Purchases

Param Type
owned Products List
owned Subscriptions List

Got Product Details

Got Product Details

Param Type
success Boolean
product Id Text
title Text
description Text
currency Text
price Text

Got Purchases Result

Triggers with the result of IsPurchased

Param Type
product Id Text
product Type Text
is Purchased Boolean

Got Subscription Details

Got Subscription Details

Param Type
success Boolean
is Subscription Boolean
subscription Id Text
title Text
description Text
currency Text
price Text

Methods

Check Purchase

Method for CheckPurchase

Param Type
product Id Text
product Type Text

Consume

Consumes a purchase to enable users to buy it again.

Param Type
sku Text

Initialize

⚠ Deprecated

Do not use this block anymore. This block is deprecated and does nothing and will be removed in the future!

Param Type
license Key Text
merchant Id Text

Is Purchased

⚠ Deprecated

Returns: Boolean

Returns true if the product with the specific id is purchased.

Param Type
product Id Text

Is Subscribed

⚠ Deprecated

Returns: Boolean

Returns true if the product is subscribed.

Param Type
subscription Id Text

Load Owned Purchases

Load Owned Purchases from Google.

Product Details

Get product details from the specific product id. Product type can be either inapp or subs.

Param Type
product Id Text
product Type Text

Purchase

Purchase a product with the given product id.

Param Type
product Id Text
product Type Text

Subscribe

⚠ Deprecated

Subscribe a product with the given product id.

Param Type
subscription Id Text

Subscription Details

⚠ Deprecated

Get subscription details from the given id.

Param Type
subscription Id Text

Update Subscription

⚠ Deprecated

Do not use this block anymore. This block is deprecated and does nothing and will be removed in the future!

Param Type
subscription Id Text

Properties

Is IAB Service Available

Boolean ➖ Read - Blocks

Check Play Market services availability.

Is One Time Purchase Available

Boolean ➖ Read - Blocks

Is one time purchase supported.

Is Subscription Update Supported

Boolean ➖ Read - Blocks

Is subscription update supported.

Is Subscriptions Supported

Boolean ➖ Read - Blocks

Is subscriptions supported.

Ready To Purchase

Boolean ➖ Read - Blocks

Whether In-app billing service is ready to purchase.

Suppress Toast

⚠ Deprecated

Boolean Default: true ➖ Write - Designer

Do not use this block anymore. This block is deprecated and does nothing and will be removed in the future!

Test Mode

Boolean Default: false ➖ Read Write - Designer Blocks

Whether it is testing mode enabled or not.