queryPurchases, querySkuDetailsAsync, queryPurchaseHistoryAsync

This reference document contains details, parameters, and usage of queryPurchasesqueryDetailsAsync and queryPurchaseHistoryAsync

queryPurchases

Usage

    Purchase.PurchasesResult queryPurchases (String skuType)

Details

The queryPurchases method returns the details of the purchased items within your app.

Parameters
SkuType String: References to the type of SKU i) in-app ii) Subs

 

Returns
Purchase.PurchasesResult Contains the list of i) Purchases and ii) Response code (int)

querySkuDetailsAsync

Usage

    
    void querySkuDetailsAsync (SkuDetailsParams params, SkuDetailsResponseListener listener)

Details

The querySkuDetailsAsync method is used to perform a network query in order to get the SKU details and to return the result in an asynchronous manner.

Parameters Usage Description
params SkuDetailsParams query params specific to the query request
listener SkuDetailsResponseListener Assigned listener to capture the result of query operation.

queryPurchaseHistoryAsync

Usage

    void queryPurchaseHistoryAsync (String skuType, PurchaseHistoryResponseListener listener)

Details

ThequeryPurchaseHistoryAsyncmethod is used to query for the most recent purchases by the user. It returns the purchase list, including the ones that are expired, consumed, or cancelled.

 

Parameters
skuType String: The type of SKU as listed within BillingClient.SkuType
listener PurchaseHistoryResponseListener: Asynchronous response listener
×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg