GooglePlayBilling

Last Updated On 2021-07-16

Version 1MinSDK 14Tutorial Video

Google Play Billing is a service that lets you sell digital content on Android.



Methods

You can set the below method blocks in the blocks section of the builder.

GetProductDescription

Get the Product Description. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductDetails

Get the product item which can be used to get Individual Product Details

GetProductIconUrl

Get the Product Icon Url. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductOriginalJson

Get the Product Original Json. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductOriginalPrice

Get the Product Original Price. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductPrice

Get the Product Price. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductPriceCurrencyCode

Get the Product Currency Code like INR, USD. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductSku

Get the Product Sku. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetProductTitle

Get the Product Title. Pass the Product Details from GotProductDetails or GotSubscriptionItemDetails Event

GetPurchasedProducts

Get All the Purchased Products Details. A Product Item will be returned. Use the GetProductDetails Function to get Product Info

GetPurchasedSubscriptions

Get All the Purchased Subscription Details. A Product Item will be returned. Use the GetProductDetails Function and GetSubscriptionItem to get Subscription Info

GetSubscriptionFreeTrialPeriod

Get the Subscription Item Free Trial Period. Pass the Product Details from GotSubscriptionItemDetails Event

GetSubscriptionItemDetails

Get the Subscription Item as a Product Item which can be used inside the GetProductDetails Function and the GetSubscriptionItem Functions

GetSubscriptionItemPeriod

Get the Subscription Item Period. Pass the Product Details from GotSubscriptionItemDetails Event

HandlePurchaseAsConsumable

Handle as Consumable, can be bought again

HandlePurchaseAsNonConsumable

Handle as Non Consumable, can be bought only Once

IsProductPurchased

Check if a product is purchased using the Product Id

IsSubscriptionPurchased

Check if a Subscription is purchased using the Product Id

LaunchBillingFlow

Start the Purchase


Events

You can set the below event blocks in the blocks section of the builder.

ErrorOccurred

Some Error Occurred

FailedToGetProductDetails

Failed to Get Product Details

FailedToGetSubscriptionItemDetails

Failed to Get Subscription Details

GotProductDetails

Got the Product Details. Use the 'productDetails' inside the GetProduct--- Function

GotPurchasedProducts

Gets a List of Purchased products item. Use each item in the GetProduct--- Function

GotPurchasedSubscriptions

Gets a List of Purchased Subscriptions item. Use each item in the GetProduct--- or GetSubscription--- Function

GotSubscriptionItemDetails

Got the Subscription Details. Use the 'productDetails' inside the GetProduct--- and GetSubscription--- Function

PurchaseCancelled

Purchase Cancelled by the User

PurchaseFailed

Purchase Failed. Check errorMessage for Info

PurchaseSuccessful

Purchased was Successful and handled

PurchaseUpdated

Purchase Updated. Handle Purchase here else it will be refunded within 3 days