This reference document contains the details of PurchasesUpdatedListener and the corresponding public method OnPurchasesUpdated.
public interface PurchasesUpdatedListener
gg.now.billingclient.api.PurchasesUpdatedListener
PurchasesUpdatedListener is the listener interface to update the in-app purchases using the now.gg Billing Service.
abstract void onPurchasesUpdated(int billingResult, List<Purchase> purchases)
// method to get notifications for purchase updates
void onPurchasesUpdated (int billingResult, List<Purchase> purchases)
onPurchasesUpdated method is implemented to enable notifications for purchase updates. These include both purchases:
Note: The purchases that are reported here, should be consumed.
| Parameters | Description |
|---|---|
| billingResult | The result of the purchase is updated with a return value. If the user already owns the item, the return value is 7. If the item is not available, the return value is 4. If the user cancels the purchase flow, the return value is 1. |
| purchases | List of updated purchases |
Payments Module
Payments Module
Document Rev. 1.0