question

brickyenne avatar image
brickyenne asked

IAP on Hybrid Apps

Hello, I'm trying to implement the IAP API on a hybrid App. This App uses Intel(ex-appMobi) UI framework and it's own re-written jQuery library. This App UI handles internal multi-pages. It's a global DIV container where internal DIV's act as separate pages via AJAX. Well Amazon's IAP API doesn't works in this scenario. I had to turn-off the App's CSS enterely to have the dialogs show up. This is 'cause the framework isn't allowing external content render on top of the "pages". It does allow cross-domain calls and external content but only when it's called by an anchor ( href="http://yourdomainhere.com">link), not when injected by javascript. Is there a chance of an IAP API that lets the App handle its own dialogs? one that only reports back the result of transaction? Thank you, your help will be appreciated.
iap
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Brickyenne, Thank you for your post. Just to make sure, Are you using our IAP sdk for web apps ( https://developer.amazon.com/sdk/webapps.html) ? Since you are developing hybrid apps, cant you use our IAP sdk for Android ( https://developer.amazon.com/sdk/in-app-purchasing.html) ?
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brickyenne avatar image
brickyenne answered
Yep, using the one for web apps. Using the Android IAP API would require trying to build it as a plugin for this platform. I'll take a look at it to see if it conforms to the plugin requirements set by Intel for Android. I'll keep trying with the one for web apps and will come back to you with my results. Thank you!
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.