poiuytrez / AndroidInAppBilling

Android App Billing plugin for Cordova
174 stars 144 forks source link

Error refreshing inventory (querying owned items). (response: -1003: Purchase signature verification failed) #71

Open marcsyp opened 10 years ago

marcsyp commented 10 years ago

Everything was working fine until a few weeks ago, when I started getting this error. The init() is successful, but trying to query the purchases fails. I am using an account that is listed under the test accounts in my Developer console (not the developer account).

I am hearing from my beta testers that they are getting the same error.

Using Cordova 3.6.3 (but was happening in Cordova 3.3 as well), v3 of the plugin. Did the Google Play API change recently?

Thanks, Marc

marcsyp commented 10 years ago

Also, I have tried the following: . canceled my test purchase and received confirmation of that test purchase cancellation . uninstalled and reinstalled the app . Triple checked the public key in the java file . The readme has changed since I installed this plugin, so I created a billing_key.xml file in /values . Made sure the APK installed is the same as the APK on Google Play

I have not uninstalled and reinstalled the inAppBiling plugin. Should I try that?

marcsyp commented 10 years ago

One more note. This is occurring for an actual purchase as well as test purchases.

mattgrande commented 10 years ago

I'm experiencing the same... Did you get anywhere with this?

marcsyp commented 10 years ago

I have discovered that, at least in my case, it's not possible to use a debug build even if signed with the same key as the release build. Once I install the release version, I usually get no response (no error message, nothing, but of course I can't check the console to see anything since it's not debuggable). Then, after waiting 8-24 hours, the billing system starts to work.

A really annoying situation, to be sure...

arenddeboer commented 10 years ago

I'm in de same boat, currently testing with a test purchase: android.test.purchased

mattgrande commented 10 years ago

Here's a recommendation: Make sure that your Billing Key is properly saved. That was my problem, after all that...

ravikumara commented 10 years ago

i am getting the same error and my base64 publickey is correct

cordova plugin add https://github.com/poiuytrez/AndroidInAppBilling.git --variable BILLING_KEY="MIIBIjANBgk.......Hb3KtJI39jopGfcAWCO8m1gKrS9o4yaYV6vnZBN1ksRwIDAQAB"

This is how am installing the plugin. is there something else i need to configure:(