Hello, I've implemented our game's InApp store and it works fine with the SDK Tester. However, I don't understand how I should use the following values in my implementation: App SKU, Amazon App ID and App Key. One way I thought was to use these values to create the consumable's SKU string. Consumable SKU = App SKU + Amazon app ID + App Key + Consumable Description Without doing this I don't understand how the store backend will identify my game. Maybe the .jar library I downloaded from my developer account already uses these values... Any ideas?
Hi Pab, For implementing Amazon In-App Purchase, you have to implement only SKU for IAP which in turn used by Amazon while IAP purchase and there is no need to implement Amazon app ID, App Key or App SKU A good approach for managing SKUs would be: 1. Reference SKUs as strings in your app's strings.xml file -- the same way you would use any string constant. 2. You can test your app using SDK Tester and the amazon.sdktester.json file without doing anything on the Developer Portal. 3. When you're ready to submit your app (after testing with SDKTester), make sure you have also submitted your IAP items on the Developer portal -- watch for typos! We recommend using . for a SKU format, just because it makes it obvious what it is and what app it belongs to. For example: Example SKU: com.yoyodyne.beachblanketbingo.500_coins For further information on how to test IAP items on SDKTester you can refer to IAP Link(
https://developer.amazon.com/sdk/in-app-purchasing.html) Hope this information helps! Thank you
Thanks for that Samuel! There's still something that I don't understand: If the only thing the InApp store implementation needs is the SKUs and these must be unique only across a developer account, how can you possibly determine the developer account of the App which is trying to buy a SKU? Two different developers can actually use the same SKU for a consumable for example, how does this work? Cheers, Pablo.
Hi Pablo, Yeah, two different developers can have same SKU but it does not matter as whenever developer initiate IAP purchase, the purchase goes along with App SKU and IAP SKU which identifies the item uniquely. But you do not need to worry about this part as this part will be taken care by Amazon IAP. :)