lannguyen / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

IAB Error You already owned this item #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

enter image description here I'm now developing a small game with Google's 
in-app billing service.

And I reference to Trivial Drive of Google's sample project. Let's me ask you 
about connection interruption during Purchase Items from Google Play.

It's OK when launching purchase flow with normal internet connection.

I tested like this. As soon as purchase flow is launched, disconnect the 
internet connection (by unplugging the routers' LAN). After about 2-3 minutes, 
It shows Connection time out. In merchant account, Money transfer is done. But 
when I query All owned items, there is no owned item of this ID (purchased 
recently). And when I try to purchase again this item, It shows "Error You 
already owned this item".

How can I solve this problem? Anybody encountered like this problem?

Please Help. Appreciate to all comments and helps.

Thanks..........

Original issue reported on code.google.com by yanlina...@gicjp.com on 11 May 2013 at 9:44

Attachments:

GoogleCodeExporter commented 8 years ago
That's why you should always query inventory on app start and process/consume 
any pending items.

Original comment by marko.st...@outfit7.com on 6 Jun 2013 at 9:37

GoogleCodeExporter commented 8 years ago
Clearing the Google Play app's cache can solve to an extent. After "You already 
owned item" alert is shown, advise user to clear google app's cache manually.

Original comment by yanlina...@gicjp.com on 15 Jun 2013 at 4:40

GoogleCodeExporter commented 8 years ago
I saw same situation with in-app billing v3.
Ofcource, known workarounds, Clearing the Google Play app's cache or rebooting 
Android is works fine.
But I think that new API is required, something likes "syncCache()" in 
IInAppBillingService.

Original comment by th.16777...@gmail.com on 21 Jun 2013 at 12:19