Насколько я знаю, в библиотеке платежей Google Play имеет 2 метода получения информации.
Код: Выделить всё
1. PurchasesResult purchasesResult = billingClient.queryPurchases(SkuType.INAPP);
2. billingClient.queryPurchaseHistoryAsync(SkuType.INAPP,
new PurchaseHistoryResponseListener() {
@Override
public void onPurchaseHistoryResponse(BillingResult billingResult,
List
purchasesList) {
if (billingResult.getResponseCode() == BillingResponse.OK
&& purchasesList != null) {
for (Purchase purchase : purchasesList) {
// Process the result.
}
}
}
});
Подробнее здесь: https://stackoverflow.com/questions/567 ... g-for-andr
Мобильная версия