PurchasesResponseListener

com.appcoins.sdk.billing.PurchasesResponseListener

A callback class that serves as a listener for the query of Purchases made with the CatappultBillingClient.


Public Methods

onQueryPurchasesResponse

void onQueryPurchasesResponse(BillingResult billingResult, List<Purchase> purchases)

Invoked to notify the result of querying for purchases using the method queryPurchasesAsync.

🚧

Purchases received in this listener must be consumed

The failure to consume a Purchase when receiving it in this method will result in a refund to the User after 48 hours. Check more about it in the SDK Implementation guide.

Parameters
NameTypeDescription
billingResultBillingResultBilling result of type BillingResult of the response received.
purchasesList<Purchase>List containing the Purchases queried.