question

soladevtest avatar image
soladevtest asked

Problems when running the IAP Tester with the sample app

Hi I found the same problem when testing with Real android device OS android Gingerbread 2.3.4 I've already install the AmazonSDKTest the device and copy the JSON file to sdcard root but when I try the sample apps and click the "Click Me" Button and Subcribe nothing happened I got this error : com.amazon.testclient.TestClientException: org.json.JSONException: Value com.amazon.buttonclicker.subscription.1mo of type java.lang.String cannot be converted to JSONObject and my JSON look like this : "com.amazon.buttonclicker.subscription.1mo" : { "itemType" : "SUBSCRIPTION", "price" : 3.99, "title": "Button Clicker", "description": "Click your button!", "smallIconUrl": "http://some/image.jpg", "subscriptionParent": "com.amazon.buttonclicker.subscription" }, "com.amazon.buttonclicker.ten_clicks" : { "itemType": "CONSUMABLE", "price": 0.99, "title": "More Clicks!", "description": "Click your button ten more times!", "smallIconUrl": "http://some/image.jpg" }, "com.amazon.buttonclicker.blue_button" : { "itemType": "ENTITLED", "price": 0.99, "title": "Blue Button", "description": "Button Clicker - Now in Blue!", "smallIconUrl": "http://some/image.jpg" } any help ? thanks
iap
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
Hi Soladevtest, Please use the json file provided along with the Button Clicker sample app. You can find this json file at the "assets" folder of the package. Hope this will resolve your issue. Do let us know if you still face the same issue. You can find more information on testing an app using json file at: https://developer.amazon.com/sdk/in-app-purchasing/documentation/testing-iap.html#Create%20JSON
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

soladevtest avatar image
soladevtest answered
Yes It resolve the problem Thank You Very Much :)
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
You are welcome :)
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.