Amazon In-app purchase

前端 未结 2 1493
滥情空心
滥情空心 2021-01-03 16:47

has anybody tried implementing amazon\'s in-app purchase? I\'m having problem implementing the example on their site. below example, it\'s giving me INVALID_SKU response:

2条回答
  •  佛祖请我去吃肉
    2021-01-03 17:42

    INVALID_SKU occurs when SKU is not matching or not entered in JSON file. If you are implementing your test app using SDK Tester, then please make sure that the SKU which you are using in your app must have an entry in JSON file too. JSON files resides under /mnt/sdcard/ with name amazon.sdktester.json. Request you to verify whether you have created JSON file with SKU details under this path in the device.

    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:

    com.yoyodyne.beachblanketbingo.500_coins

提交回复
热议问题