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.

Params
product Id Text

Consumed

When product is consumed.

Params
success Boolean
sku Text

Error Occurred

Error occurred event.

Params
message Text

Got Owned Purchases

Got Owned Purchases

Params
owned Products List
owned Subscriptions List

Got Product Details

Got Product Details

Params
success Boolean
product Id Text
title Text
description Text
currency Text
price Text

Got Subscription Details

Got Subscription Details

Params
success Boolean
is Subscription Boolean
subscription Id Text
title Text
description Text
currency Text
price Text

Methods

Consume

Consumes a purchase to enable users to buy it again.

Params
sku Text

Initialize

⚠ Deprecated

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

Params
license Key Text
merchant Id Text

Is Purchased

Returns: Boolean

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

Params
product Id Text

Is Subscribed

Returns: Boolean

Returns true if the product is subscribed.

Params
subscription Id Text

Load Owned Purchases

Load Owned Purchases from Google.

Product Details

Get product details from the specific product id.

Params
product Id Text

Purchase

Purchase a product with the given product id.

Params
product Id Text

Subscribe

Subscribe a product with the given product id.

Params
subscription Id Text

Subscription Details

Get subscription details from the given id.

Params
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!

Params
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.


Last update: November 9, 2022