I want to get information about how to get detail of already Purchases product with or without internet connection in android studio.
As i know, in google play billing library has 2 method for retrieving the information.
1. PurchasesResult purchasesResult = billingClient.queryPurchases(SkuType.INAPP);
2. billingClient.queryPurchaseHistoryAsync(SkuType.INAPP,
new PurchaseHistoryResponseListener() {
@Override
public void onPurchaseHistoryResponse(BillingResult billingResult,
List<Purchase> purchasesList) {
if (billingResult.getResponseCode() == BillingResponse.OK
&& purchasesList != null) {
for (Purchase purchase : purchasesList) {
// Process the result.
}
}
}
});
But i don't know how to retrieve the information.