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.
Amazon in-app purchase gives INVALID_SKU
题
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
解决方案
不隶属于 StackOverflow