question

Anon avatar image
Anon asked

PurchasingService.getProductData JSON error: No value for priceJson

Hello I'm testing against the Amazon SDK Tester app. When I pass a valid entitled sku to PurchasingService.getProductData I get the error [b]07-22 20:50:12.774: E/c(30590): Error parsing item data output 07-22 20:50:12.774: E/c(30590): org.json.JSONException: No value for priceJson[/b] This is occurring within the Amazon billing library before the listener returns with a response of SUCCESSFUL, although the products returned in the response are empty. The amazon.sdktester,json is valid (downloaded direct from the Amazon developer console) and is as follows {"com.somecompany.someapp":{ "description":"A test pack of mixed puzzles", "smallIconUrl":" https://s3-external-1.amazonaws.com/com-amazon-mas-catalog/M1K5OIGTQ7XPLE%2FM22L8D3JZ1RCZO%2Fimages%2F_81ced453-e761-4e65-add2-01c5e10318eb_2b78b60897b93551bab014f2497a9903", "title":"TestPack", "price":"1.18", "itemType":"ENTITLED" }} I'd be very grateful for any ideas as to why this happening. Thanks Message was edited by: Anon
iap
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Please uninstall the SDK tester from your device. Only Amazon App Tester Should be installed in the device when you are testing IAP V2 in sandbox in your app. Thanks.
10 |5000

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

Prashant Adesara avatar image
Prashant Adesara answered
I am using Amazon In-App Purchase for Subscription V2. But able get response from JSON. I did same you told about remove SDK Tester application from Device. But after I am not able to get Purchase Dialog, Before it was display. Right now I just got the onBuyMagazineClick: requestId (c469xx18-xxxx-xxxx-xxxx-6ebxxxxd65ba) only. So what's issue after removing. And which steps is remaining from my side. Can you please give me more details for How can I test using Send Box and after how can test after uploading to Amazon store as a live version? Thanks,
10 |5000

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

DougM@Amazon avatar image
DougM@Amazon answered
Hello Prashant, Do you have the Amazon App Tester installed when you are attempting to validate your In-App Purchasing implementation? We have fairly detailed documentation at https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/installing-and-configuring-app-tester for how to install and configure the Amazon App Tester and https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/testing-iap-2.0 for the high level overview of the testing options you have available to you for In-App Purchasing.
10 |5000

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