Created
November 11, 2017 20:19
-
-
Save ponnamkarthik/0695ad4ea3e20946094fe6cf0d3988ee to your computer and use it in GitHub Desktop.
In-app billing purchased Item List
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
mBillingClient.queryPurchaseHistoryAsync(SkuType.INAPP, | |
new PurchaseHistoryResponseListener() { | |
@Override | |
public void onPurchaseHistoryResponse(@BillingResponse int responseCode, | |
List<Purchase> purchasesList) { | |
if (responseCode == BillingResponse.OK | |
&& purchasesList != null) { | |
for (Purchase purchase : purchasesList) { | |
// Process the result. | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment