Cranberry's Cordova plugin works great. It lets the player purchase items as well as checking for previously purchased items.
https://github.com/cranberrygame/cordov ... ayment-iap
Purchase item, on purchase successful, has item, restore purchase, on restore purchases successful, etc.
Googe play (I'm no sure about Apple) has a really long key code you have to get, i think its under API. Once you get a game set up on the Dev console, uploaded, you'll be able to get it. It's really long. You have to copy and paste that into the Cordova IAP object. That's what links your game to Google Play.