Reputation: 5433
I'm attempting to get https://github.com/j3k0/cordova-plugin-purchase working for Cordova/PhoneGap and I'm getting an "Invalid" error when I try to retrieve the product info.
I don't know what I'm doing wrong, but here is what I have done:
store.when("product").updated(fnProcessProduct)
, but the product.state is always store.INVALIDIs there something I'm missing, either within Google Play, PhoneGap, deploying, or the plug-in?
Upvotes: 2
Views: 952
Reputation: 5433
Got the answer - once you upload an APK to Google Play as beta and activate your IAP product, you must test using APKs signed with the same key. I was using Ionic, and Ionic was signing with a debug key.
More info: https://github.com/j3k0/cordova-plugin-purchase/issues/75
Upvotes: 2