Amazon In-app purchase

前端 未结 2 1486
滥情空心
滥情空心 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:21

    Here's how I got the In App purchases to work on Kindle Fire (after several hrs of struggle...)

    1. adb install AmazonSDKTester.apk (Install SDKTester on Kindle Fire)
    2. Create a file amazon.sdktester.json in the SDCARD directory (The connected KF shows up as SDCARD in Finder on ur Mac)
    3. Contents of amazon.sdktester.json - { "com.yourcompany.yourpkgname.200_coins" : { "itemType": "CONSUMABLE", "price": 0.99, "title": "200 COINS", "description": "2 COINS", "smallIconUrl": "http://www.yourcompany.com/icon.png" } }
    4. Press the power button on KF & press "Disconnect" button - Now KF is no longer a mounted drive on ur Mac.
    5. Run the AmazonSDKTester app on KF.
    6. Run your app from Eclipse. Make sure the package name in the JSON matches the In App Item package name on Amazon's website & in the PurchasingManager.initiatePurchaseRequest("com.yourcompany.yourpkgname.200_coins");
    7. Now you should see the In App interstitials showing up.
    8. Still doesn't work - Force Close both ur app & AmazonSDKTester on KF; Hard Reset KF ; Restart Eclipse & Restart from Step 1

提交回复
热议问题