即使使用亚马逊应用商店SDK测试器,我也无法测试应用内购买。
public void onPurchaseResponse(final PurchaseResponse purchaseResponse)
即使我有一个带有虚假JSON的amazon.sdktester.json文件,但purchaseResponse始终显示"INVALID_SKU"。
文件内容: { "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"
}
}
即使示例应用程序也无法正常工作。 您有什么建议可以测试应用程序吗?似乎Amazon SDK Tester无法拦截请求。