Skip to content

Instantly share code, notes, and snippets.

@ponnamkarthik
Created November 11, 2017 20:19
Show Gist options
  • Save ponnamkarthik/0695ad4ea3e20946094fe6cf0d3988ee to your computer and use it in GitHub Desktop.
Save ponnamkarthik/0695ad4ea3e20946094fe6cf0d3988ee to your computer and use it in GitHub Desktop.
In-app billing purchased Item List
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