has anybody tried implementing amazon's in-app purchase? I'm having problem implementing the example on their site. below example, it's giving me INVALID_SKU response:
when purchase is initiated,
PurchasingManager.initiateItemDataRequest("DeveloperSKU-1234");
the response of above will be recieved by below code:
public void onPurchaseResponse(final PurchaseResponse purchaseResponse) {
Log.v(TAG, "onPurchaseResponse recieved");
Log.v(TAG, "PurchaseRequestStatus:" + purchaseResponse.getPurchaseRequestStatus());
}
unfortunately, i always got "PurchaseRequestStatus:INVALID_SKU".
any of you knows how to make this work or do you know a good site for the tutorial?
Also at their site , dialog box should show if I got an INVALID_SKU which I didnt get any.
Here's how I got the In App purchases to work on Kindle Fire (after several hrs of struggle...)
INVALID_SKU occurs when SKU is not matching or not entered in JSON file. If you are implementing your test app using SDK Tester, then please make sure that the SKU which you are using in your app must have an entry in JSON file too. JSON files resides under /mnt/sdcard/ with name amazon.sdktester.json. Request you to verify whether you have created JSON file with SKU details under this path in the device.
A good approach for managing SKUs would be:
We recommend using . for a SKU format, just because it makes it obvious what it is and what app it belongs to. For example:
com.yoyodyne.beachblanketbingo.500_coins
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.