Hello Corona Community!
I need some help with Amazon In-app Purchases! I’ve been able to use Amazon In-app Purchases on a previous app, but for some reason, I can’t get it to work on the latest build that I’m using - 2014.2407.
Here’s what I’ve done:
I’ve built a game called Rebus Puzzles with in-app purchases and it can be found here - https://play.google.com/store/apps/details?id=com.thatssopanda.rebuspuzzles. The IAPs work great on Google Play. Next, I worked on making available on Amazon App Store by changing the store.init to the follow code:
store = require("store") if(store.target == "amazon") then store = require "plugin.amazon.iap" store.init(transactionCallback) elseif(store.target == "google") then store.init("google", transactionCallback) else store.init("apple", transactionCallback) end
When I submitted Rebus Puzzles to Amazon, they rejected it stating the app loads up a blank screen. I did confirm this using their App Testing Service. So, I commented out the above lines and resubmitted just out of curiosity, but this time the rejected it because the IAPs did not work.
I know the IAPs wouldn’t work because store.init() wasn’t called; I was just curious.
Since commenting out the above lines made my app work, is there something that changed with Amazon IAPs? Do I need to call the plugin a different way or use a different build version? Here’s my build.settings:
build.settings:
plugins = { ["plugin.amazon.iap"] = { publisherId = "com.amazon", supportedPlatforms = { android=true }, }, ["CoronaProvider.ads.vungle"] = { -- required publisherId = "com.vungle", }, ["CoronaProvider.native.popup.social"] = { --required publisherId = "com.coronalabs", }, }