An in-app-billing extension to monetize your app products using google play store billing library 5.0.0.
Reminder: Starting on August 2, 2022, all new apps must use Billing Library version 4 or newer. By November 1, 2022, all updates to existing apps must use Billing Library version 4 or newer. Learn more.
You must use this function to starts up BillingClient setup process asynchronously.
BillingServiceConnected: Sdk is ready run any billing operation.
BillingServiceDisconnected: Sdk is disconnected from billing service.
This event will be triggered when the extension got any error while doing any billing operation.
Closes the connection and releases all held resources such as service connections.
Checks if the client is currently connected to the service, so that requests to other methods will succeed.
If feature is not supported then return false.
If you've enabled in-app messaging, Google Play will show users messaging during grace period and account hold once per day and provide them an opportunity to fix their payment without leaving the app. We recommend that you call this API whenever the user opens the app to determine whether the message should be shown. If the user successfully recovered their subscription, you will receive purchase token. You should then use this purchase token to call the Google Play Developer API and refresh the subscription status in your app.
InAppMessageResponse: The subscription status changed. For example, a subscription has been recovered from a suspend state. Developers should expect the purchase token to be returned with this response code and use the purchase token with the Google Play Developer API.
Performs a network query the details of products available for sale in your app. Set productIds and productTypes as list. Watch demo block for better understanding.
Initiates the billing flow for an in-app purchase or subscription.
For consumables, this method fulfills the acknowledgement requirement and indicates that your app has granted entitlement to the user. This method also enables your app to make the one-time product available for purchase again.
To acknowledge non-consumable purchases, use this function.
Fetch for a user's subscription purchases. Returns only active subscriptions and non-consumed one-time purchases.
Returns the most recent purchase made by the user for each product, even if that purchase is expired, canceled, or consumed.