Android: in-app billing issue

I integrate billing in the application in my application. But I have problems testing my application. Every time I try to purchase an application element. A wired message appears The item you tried to buy was not found . The following appeared on Logcat:

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 have checked the following things many times:

  • I am logged in with the same google account on my test device that I set up as a test account.
  • All In-app applications I created are active.
  • I uploaded apk to alpha channel, it is mentioned that draft mode is no longer supported .
  • I checked the license key for my application from the developer console.
  • Someone suggested restarting my device once. I did it too.
  • I installed on my device the same apk that was downloaded on Google Play. Both sign with the same certificate.
  • It is mentioned that you should expect at least 2-3 hours to get apk recognition. For me it was more than 15 hours.
  • In addition, my test account is different from the seller account.

I changed the Google pattern and also created my own pattern. In both cases, I faced the same problem.

Update: I am testing IAB from my client account. I noticed that her wallet trading account is still not verified. I am not sure if this is the main cause of this problem.

+4
android in-app-billing
source share
2 answers

The reason for this problem was pretty dumb, after downloading the application to the alpha channel, you need to publish it. I did not publish it, so it remained in draft mode. After I published the application, it worked for an hour.

+6
source share

This may help someone: make sure your test application does not have a higher version code defined by the one you downloaded in the play store.

0
source share

All Articles