This reference document contains details, parameters, and usage of queryPurchasesAsync
, queryDetailsAsync
and queryPurchaseHistoryAsync
void queryPurchasesAsync(QueryPurchasesParams params, PurchasesResponseListener listener);
The queryPurchasesAsync
method returns the details of the purchased items within your app.
Parameters | Usage | Description |
---|---|---|
params | QueryPurchasesParams | Query purchase params specific to the request |
listener | PurchasesResponseListener | Assigned listener to capture the result of query purchase operation. |
void querySkuDetailsAsync (SkuDetailsParams params, SkuDetailsResponseListener listener)
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. |
void queryPurchaseHistoryAsync (String skuType, PurchaseHistoryResponseListener listener)
ThequeryPurchaseHistoryAsync
method 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 |
Payments Module
Payments Module
Document Rev. 1.0