Search code examples
testingin-app-purchasekindle-fire

Testing in-app purchases in Kindle Fire application


I am not able to test in app purchases even with Amazon Appstore SDK Tester.

public void onPurchaseResponse(final PurchaseResponse purchaseResponse)

purchaseResponse always has "INVALID_SKU" even if I have amazon.sdktester.json file with fake JSON.

file content: { "test" : { "itemType": "CONSUMABLE", "price": 0.99, "title": "More Clicks!", "description": "Click your button ten more times!", "smallIconUrl": "http://www.google.com/images/srpr/logo3w.png" },

"com.amazon.buttonclicker.ten_clicks" : {
    "itemType": "CONSUMABLE",
    "price": 0.99,
    "title": "More Clicks!",
    "description": "Click your button ten more times!",
    "smallIconUrl": "http://www.google.com/images/srpr/logo3w.png"
  },

  "com.amazon.buttonclicker.blue_button" : {
    "itemType": "ENTITLED",
    "price": 0.99,
    "title": "Blue Button",
    "description": "Button Clicker - Now in Blue!",
    "smallIconUrl": "http://www.google.com/images/srpr/logo3w.png"
  }
}

Even sample application does not work. Do you have any suggestions how to test application? It seems that Amazon SDK Tester does not intercept requests.


Solution

  • It looks like magic but hard reset resolved all my problems.