I have had so many issues getting the OG version to work, I had to share this so others can stop struggling and get to work! Here is a modifed working version of this plugin, which also explains how to use the ApplicationPreferences Phonegap plugin to unlock products in your app!
I can't be the only one struggling with this. My in-app purchase returns the following error message (window.plugins.inAppPurchaseManager.callbackMap.f0.fail) every time when executed. I have everything set up by the book, at least to my knowledge, I even have one item with screenshot and another without. Result is always the same.
I'm completely out of ideas what to do, perhaps someone here can help?