Docs
First of all, you should establish a connection to Google Play. To connect to Google Play, you should use this method:
Rendering block preview…
If billing client is ready and connection is established then it will trigger BillingClientReady event.
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!
Rendering block preview…
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.
Rendering block preview…
If application fails to launch PurchaseFlow then it will trigger FailedToLaunchPurchaseFlow with a response code.
Rendering block preview…
If it is successfully purchased then it will trigger GotPurchase event and you will get Purchase object in the event block.
Rendering block preview…
If the product or subscription is cancelled by the user then it will trigger PurchaseCancelled Event.
Rendering block preview…
If the purchase is failed then it will trigger PurchaseFailed event.
Rendering block preview…
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,
Rendering block preview…
To handle purchase as non-consumable,
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,
Rendering block preview…
If purchase was in unspecified state then it will trigger PurchaseStateUnspecified event.
Rendering block preview…
If the purchase is successfully handled then it will trigger PurchaseSuccess Event,
Rendering block preview…
If the handeling purchase is failed then it will again trigger PurchaseFailed event.
You can get the details of a Purchase using this block :
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.
Rendering block preview…
Rendering block preview…
If success then it will trigger GotDetails event with title, description, price and originalJson.
Rendering block preview…
You can get the history of purchase using this block :
Rendering block preview…
After getting Purchase History successfully then it will trigger GotPurchaseHistory event with list of product ids, order ids, and original jsons.
Rendering block preview…
To check if purchase is acknowledged or not.
Rendering block preview…
To check if GooglePlay in your device supports subscription or not.
Rendering block preview…
To check if billing client is ready or not.
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.
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.
Rendering block preview…
Releases
com.oseamiya.inappbilling.aix
197 KB
Nov 13, 2021
AIX package
Release notes not provided.
com.oseamiya.inappbilling.aix
131 KB
Oct 31, 2021
AIX package
Release notes not provided.