With a test purchase, everything is going well, but when you return funds through the developer’s panel, the purchase is still considered active.

Purchase Recovery Code:

@Override public void onPurchaseHistoryRestored() { //Вызывается, когда история покупки была восстановлена, // и список всех принадлежащих идентификаторы продуктов был загружен из Google Play // так Вы сможете НУЖНУЮ покупку проверить for (String sku : bp.listOwnedProducts()) { boolean wasBouhtg = sku.equals(InAppBillingResources.getSKU_Disable_Ads()); if (wasBouhtg) { // true - куплено // пишем в `SharedPreferences`, что отключили рекламу prefManager.setAdsStatus(false); } else { // false - не куплено prefManager.setAdsStatus(true); } } } 

How can I get a really up to date shopping list?

    1 answer 1

    Found a solution. The library uses caching of purchased goods, and the listOwnedProducts () method accesses the cache in order to update the cache, you must call the loadOwnedPurchasesFromGoogle () method. After that, the list becomes relevant.