In app purchases on my app have worked fine for 2 years, and I think they are still working okay in Google Play with actual purchases. But recently when using promotion codes, or internal/beta testing, when I try restoring a purchase, I get the following error:
Error - you already own this item
If I try to purchase an item, it looks like the purchase flow works properly. But then once it is done, I get the same error above. And I can’t restore anymore.
I’ve tried all the advice out there on resetting Google Play/Services Cache, and this person several years back seemed to have a similar issue that was never solved Error You Already Own This Item. Most other discussions on this topic are fairly old and outdated.
One strange temporary fix is that if I revert my Google Play store to factory settings (I'm on a slightly older 3 year old device), it will work again... until Google Play store updates, and then it stops working.
I was using this library successfully https://github.com/anjlab/android-inapp-billing-v3, but I thought maybe since it is outdated this might be the issue. However, doing it even without this library (using official Google documentation on setting up IAB) still results in the same problem.
Does anyone know how to fix this?
Thanks!