Converted InApp purchases to Cordova plugin