Getaix
ExplorePublishcURL to BlocksNewAbout
Report issueGetaix GoldBlog
Back Getaix
Log in

Getaix

Explore and publish App Inventor extensions with cleaner docs, safer downloads, and developer profiles.

Marketplace

Explore extensionsPublish extensionAbout

Support

ContactReport issuePrivacyTerms

Community

TelegramTwitterApp Inventor Community

Built for App Inventor developers and no-code builders.

Getaix © 2026 by Jerin Jacob. All rights reserved.

Loading...
FreeReviewed listingLatest 2

InAppBilling

@oseamiya

An Extension to enable service to sell digital product and contents in your android application using Google's billling service.

Downloads

384

Views

936

Reactions

1

Current version
2View all
File
com.oseamiya.inappbilling.aix
Package
com.oseamiya.inappbilling.InAppBilling
Size
197 KB
Updated
Nov 13, 2021
Download latest
DocumentationAll versionsPermissionsHow-to Guide

Docs

Documentation

StartConnection

First of all, you should establish a connection to Google Play. To connect to Google Play, you should use this method:

InAppBilling.StartConnection

Rendering block preview…

  If billing client is ready and connection is established then it will trigger BillingClientReady event. 

InAppBilling.BillingClientReady

Rendering block preview…

  Else if connection is failed / Billing Service is disconnected then it will trigger BillingServiceDisconnect event. You can try to restart the connection by calling StartConnection method again!  

InAppBilling.BillingServiceDisconnect

Rendering block preview…

LaunchPurchaseFlow

  To start a purchase request from your app, you should call LaunchPurchaseFlow method. It needs productId as params aswell as skuType can either be InApp or Subs.

InAppBilling.LaunchProjectFlow

Rendering block preview…

  If application fails to launch PurchaseFlow then it will trigger FailedToLaunchPurchaseFlow with a response code.

InAppBilling.FailedToLaunchPurchaseFlow

Rendering block preview…

  If it is successfully purchased then it will trigger GotPurchase event and you will get Purchase object in the event block.

InAppBilling.GotPurchase

Rendering block preview…

  If the product or subscription is cancelled by the user then it will trigger PurchaseCancelled Event.

InAppBilling.PurchaseCancelled

Rendering block preview…

  If the purchase is failed then it will trigger PurchaseFailed event.

InAppBilling.PurchaseFailed

Rendering block preview…

Processing Purchase

Once a user completes the purchase, your app needs to process the purchases as It’s possible that your app might not be aware of all the purchases a user has made. You can find more information & scenarios where your app could lose track or be unaware of purchases from here.You can either process the purchase either handling purchase as consumable or non-consumable. You can find more about the consumable, and non-consumable purchases from here.

To handle purchase as consumable,

InAppBilling.HandleConsumable

Rendering block preview…

To handle purchase as non-consumable,

InAppBilling.HandleNonConsumable

Rendering block preview…

Purchase is same purchase you get from GetPurchase block in LaunchProjectFlow .

If purchase was in pending state then it will trigger PurchaseStatePending event,

InAppBilling.PurchaseStatePending

Rendering block preview…

  If purchase was in unspecified state then it will trigger PurchaseStateUnspecified event.

InAppBilling.PurchaseStateUnspecified

Rendering block preview…

  If the purchase is successfully handled then it will trigger PurchaseSuccess Event,

InAppBilling.PurchaseSuccess

Rendering block preview…

  If the handeling purchase is failed then it will again trigger PurchaseFailed event.

Getting Purchase Details

You can get the details of a Purchase using this block :

InAppBilling.GetPurchaseDetails

Rendering block preview…

Purchase is same purchase you get from GetPurchase block in LaunchProjectFlow .

If successful then it will trigger GotPurchaseDetails with orderId, isAcknowledged, isAutoRenewing, purchasedTime and json.

InAppBilling.GotPurchaseDetails

Rendering block preview…

Getting Product/Subs Details

InAppBilling.GetDetails

Rendering block preview…

  If success then it will trigger GotDetails event with title, description, price and originalJson.

InAppBilling.GotDetails

Rendering block preview…

Getting Purchases History

You can get the history of purchase using this block :

InAppBilling.GetPurchasesHistory

Rendering block preview…

  After getting Purchase History successfully then it will trigger GotPurchaseHistory event with list of product ids, order ids, and original jsons.

InAppBilling.GotPurchasesHistory

Rendering block preview…

Other Blocks :

To check if purchase is acknowledged or not.

InAppBilling.IsPurchaseAcknowledged

Rendering block preview…

To check if GooglePlay in your device supports subscription or not.

InAppBilling.IsSubscriptionSupported

Rendering block preview…

To check if billing client is ready or not.

InAppBilling.IsReady

Rendering block preview…

If Auto Acknowledge is enabled to true then purchase is automatically handled as Non-Consumable & so you doesn’t need to handle it manually.

InAppBilling.AutoAcknowledge

Rendering block preview…

 If Test is enabled then product Id everywhere is used as android.test.purchased . This product id can be used without publishing application to playstore.

InAppBilling.Test

Rendering block preview…

Releases

All versions

2 releases

2

Latest

com.oseamiya.inappbilling.aix

197 KB

Nov 13, 2021

AIX package

Release notes

Release notes not provided.

Download latest

1

Archive

com.oseamiya.inappbilling.aix

131 KB

Oct 31, 2021

AIX package

Release notes

Release notes not provided.

Download this version

Before you install

  • Compare permissions with what the extension claims to do.
  • Prefer the latest version unless you need an older release for compatibility.
  • Report suspicious behavior so the marketplace can review it.

Permissions

No special permissions declared for this extension.

Report listing