PurchasesUpdatedListener

A callback class that serves as a listener for the Purchases made with the AppcoinsBillingClient.


Public Methods

onPurchasesUpdated

void onPurchasesUpdated(int responseCode, List<Purchase> purchases)

Invoked to notify about purchases updates. The updates about purchases received in this listener are for both purchases initiated by your application and the ones initiated outside of it.

🚧

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
responseCodeIntInteger value of type ResponseCode of the response received.
purchasesList<Purchase>List containing the Purchases that got updated.