Invalid product error on Google Play
I am trying to get https://github.com/j3k0/cordova-plugin-purchase working for Cordova / PhoneGap and I am getting Invalid error when I try to get product information.
I don't know what I am doing wrong, but this is what I did:
- Plugin installed with corresponding billing API key in platforms \ android \ res \ values \ billing_key.xml
- The store.ready () event fires without error, so I know I'm at least connecting.
- I have uploaded a signed beta APK and published it.
- I created an in-app purchase and confirmed that it is active.
- I have verified that I am calling the correct product ID in the code by hardcoding the ID.
- I am getting callbacks from
store.when("product").updated(fnProcessProduct)
but product.state is always store.INVALID
Is there something I am missing on Google Play, PhoneGap, Deployment or Plug-in?
+1
source to share
1 answer
Got the answer - once you upload the APK to Google Play as beta and activate your IAP product, you should test using APKs signed with the same key. I used Ionic and Ionic signed with a debug key.
More info: https://github.com/j3k0/cordova-plugin-purchase/issues/75
0
source to share