How to find purchase state in new version, since Purchase.getPurchaseState() is no longer available? #113
Labels
play billing library
issues filed against the Google Play Billing Library or services
In old version
com.android.billingclient:billing:dp-1
we could usePurchase.getPurchaseState()
method to get the state of it. But this is no longer available in the new versioncom.android.billingclient:billing:1.0
.In docs Play Billing Library: Querying for purchased items it says that:
But, as you can see, there is NO such a thing.
Another question is, how could we get those
CANCELED
andREFUND
ones?According to the docs, we could use
BillingCliend.queryPurchases()
to getPURCHASED
items, and useBillingCliend.queryPurchaseHistoryAsync()
to get all items. With this two methods we could know which item is NOTPURCHASED
, but never will we know what is it in the end.The text was updated successfully, but these errors were encountered: