I had a refunded non-consumable acknowledged purchase, using Google play billing 2.1.0
Purchase.PurchasesResult purchasesResult = billingClient.queryPurchases(BillingClient.SkuType.INAPP);
for(purchase in purchasesResult)
purchase.getPurchaseState()
return 1
but purchase.toString()
purchaseState
return 0
I use Purchase.PurchaseState.PURCHASED
to check for state but it return 1
Don't know what is the number for the real PURCHASED state or the refunded state