Question

I am trying to implement amazon in-app purchase in Android for Kindle Fire. I read the instruction/documentation on the Amazon portal. I downloaded the sample code and it's working. After this, I implemented all the Amazon in-app purchase instructions in my app.

I tested the app through SDKTESTER.apk updated the JSON amazonSDKTESTER.json file. The SKU in String file and the SKU in JSON are same.

After running the app and PurchaseRequest, I received PurchaseReponse, but in the purchase response, it gives INVALID_SKU.

Logcat message:

11-22 13:49:53.007: V/Amazon-IAP(6696): onPurchaseResponse recieved
11-22 13:49:53.007: V/Amazon-IAP(6696): PurchaseRequestStatus:INVALID_SKU
11-22 13:49:53.007: V/Amazon-IAP(6696): Invalid Sku for request hasGreenButton
Was it helpful?

Solution

keep the SKU in your code and in .json file the same, put the .json file in the sdcard root fold, set all the pref as default in the amazonSDKTester. see here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top