Android-inapp-billing-v3: Question: How to solve 'BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED'

Created on 15 Mar 2017  路  2Comments  路  Source: anjlab/android-inapp-billing-v3

  • which version of library you use : gradle 1.0.+
  • was it working in previous versions? : skip
  • do you use fragments or not : just in activity
  • how do you instanciate BillingProcessor (singleton or not) : not
  • which device/OS version do you use for testing (or its an emulator) : nexus 5x 7.1.1
  • have you uploaded it to Google Play or not (if yes, when which channel: Prod/Beta/Alpha) : Prod
  • do you test with real products, or with a testing onces (e.g. android.test.purchased) : Real

hi everyone.
I was built my own billing code but there were very bother me because of some error.
so a few weeks ago I change to this fancy library! I'm tesing now with this one.
Almost things is satisfied but except one thing. that is BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED.
If I got this error I can't buy this item anymore. I'm so embrassed. I'm sure my app's user feel same as me. I research a solution from googling. but I couldn't find any thing.
I found one true that is solved release a lock of purchase after about 1 day! It's so strange!
I doubt there is something google's cron logic to solve this problem periodically.
but I want that when the problem occur It have to solve right away.

Anyway, I am asking your help like this. I hope to solve it.
Thanks in advance your advice.

Most helpful comment

@binsolb to restore purchase history you can use loadOwnedPurchasesFromGoogle

All 2 comments

@binsolb to restore purchase history you can use loadOwnedPurchasesFromGoogle

@serggl
I already tried like this
if (bp.loadOwnedPurchasesFromGoogle() && bp.isPurchased(productId)) { // do some thing }

but I couldn't get any purchased item. The bp.isPurchased() is always false.
Actually, After about 1 day, the boolean value finally got ture.
Thanks your answer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mochat97 picture mochat97  路  6Comments

AbanoubWagdyWahib picture AbanoubWagdyWahib  路  9Comments

pro-guitar picture pro-guitar  路  6Comments

FranciscoE-Hudl picture FranciscoE-Hudl  路  9Comments

joaoarmando picture joaoarmando  路  5Comments