I've been trying to get IAP working on Construct 2 and PhoneGap for about 3 weeks now, and it doesn't seem like anything I do gets me anyway.
I heard that IAP works fine with a Construct 3 export, so I was hoping that someone could do me a favour.
Could someone with Construct 3 make a brand new capx (or one already in use, doesn't matter), add the iap object into it, then export via Cordova and upload here a bit of text from the exported config.xml and hopefully the config.json?
I know it's a big ask, and I have no idea if it'll help me at all. All I know is Construct 2 in combination with PhoneGap is currently broken, and there doesn't appear to be anyone who can or will fix it. Either that, or I'm missing something obvious.
The error code I get is: "Error - One of your plugins requires a parameter: BILLING_KEY"
and here are the plugins I'm using in my configs.
<plugin name="cc.fovea.cordova.purchase" />
<plugin name="com.mcm.plugins.androidinappbilling" />
<plugin name="cordova-custom-config" />
<plugin name="cordova-plugin-ad-admob" />
<plugin name="cordova-plugin-file" />
<plugin name="cordova-plugin-inappbrowser" />
<plugin name="cordova-plugin-statusbar" />
<plugin name="cordova-plugin-whitelist" />
<plugin name="cordova-plugin-wkwebview-engine" />[/code:bb3kfxlu]
[code:bb3kfxlu]"plugins": [
{ "id": "cc.fovea.cordova.purchase", "version": null },
{ "id": "com.mcm.plugins.androidinappbilling", "version": null },
{ "id": "cordova-custom-config", "version": null },
{ "id": "cordova-plugin-ad-admob", "version": null },
{ "id": "cordova-plugin-file", "version": null },
{ "id": "cordova-plugin-inappbrowser", "version": null },
{ "id": "cordova-plugin-statusbar", "version": null },
{ "id": "cordova-plugin-whitelist", "version": null },
{ "id": "cordova-plugin-wkwebview-engine", "version": null }[/code:bb3kfxlu]
Somewhere I appear to be missing a variable " <variable name="BILLING_KEY" value="YOUR_BILLING_KEY" />" which may very well slot into the purchase plugin at the top.
Like I said, a copy/paste of that code would be superb help. Hopefully...