ConsumeAsync
This method is used for the consumption of an in-app product.
void consumeAsync (String purchaseToken, ConsumeResponseListener listener)
consumeAsync
provides an asynchronous method for consumption. Remember, the consuming process can only be done on products that are owned. Once the product is marked as consumed, it can be re-purchased by the user.
Parameters. | Description |
---|---|
PurchaseToken | Purchase consumption-specific token. |
Listener | consumeResponseListener : Assigned listener to capture the consumption confirmation asynchronously using purchase callback with purchase tokens and BillingClient.BillingResponseCode |
Payments Module
Payments Module
Document Rev. 1.0