Reputation: 3155
I am integrating in-app billing in my application. But, I'm facing issues in testing my app. Every time, I try to purchase an in app item. A wired message comes up The item you were attempting purchase could not be found. On Logcat, following appeared up:
09-10 14:45:02.437: E/IabHelper(12617): Launching buy intent for premium. Request code: 10001
09-10 14:45:02.523: E/Finsky(11260): [8464] FileBasedKeyValueStore.delete: Attempt to delete 'paramspXaplU_vTGhfGqvnmPPddQ' failed!
09-10 14:45:04.000: E/Volley(11260): [8448] BasicNetwork.performRequest: Unexpected response code 500 for https://android.clients.google.com/fdfe/preparePurchase
After I click OK, logcat showed the following:
09-10 14:45:05.546: E/TrivialDrive(12617): onActivityResult(10001,0,Intent { (has extras) }
09-10 14:45:05.546: E/IabHelper(12617): Ending async operation: launchPurchaseFlow
09-10 14:45:05.546: E/IabHelper(12617): Purchase canceled - Response: 2:Unknown
09-10 14:45:05.546: E/TrivialDrive(12617): Purchase finished: IabResult: User canceled. (response: -1005:User cancelled), purchase: null
09-10 14:45:05.546: E/TrivialDrive(12617): **** TrivialDrive Error: Error purchasing: IabResult: User canceled. (response: -1005:User cancelled)
I had checked following things numerous times:
I modified the Google's sample as well as created my own sample. In both cases, I am facing same problem.
Update: I am testing IAB from my client's developer account. I noticed that her merchant wallet account is still not verified. I am not sure, if this is the root cause of this issue.
Upvotes: 4
Views: 3307
Reputation: 12045
It might help someone: Make sure, your test app has no higher version code defined that the one you have uploaded in play store.
Upvotes: 0
Reputation: 3155
The cause of this problem was pretty dumb, after uploading app to alpha channel, it needs to published. I was not publishing it, so it remained in draft mode. After I published the app, it worked within an hour.
Upvotes: 6