Created
November 11, 2017 20:22
-
-
Save ponnamkarthik/6614921cb9427a65e12404baebef9f89 to your computer and use it in GitHub Desktop.
In-app billing consume a purchase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConsumeResponseListener listener = new ConsumeResponseListener() { | |
@Override | |
public void onConsumeResponse(@BillingResponse int responseCode, String outToken) { | |
if (responseCode == BillingResponse.OK) { | |
// Handle the success of the consume operation. | |
// For example, increase the number of coins inside the user's basket. | |
} | |
}; | |
mBillingClient.consumeAsync(purchaseToken, listener); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment