question

lkinx avatar image
lkinx asked

Testing IAP on Standard Android Device?

I was wondering if it was possible to test Amazon IAP on a standard Android device (as in not a Kindle product). I installed the SDK Tester.apk, as well as put the amazon.sdktester.json file in the root of my device. I ran the SDK Tester app and checked the Logcat to make sure it was loading properly. Sure enough, it was running. In the log were lines stating that the .json file was successfully read. Next I opened up my app (which was built for the Amazon app store through the Corona SDK simulator build window) and launched an IAP. No login or confirmation screen came up, nor did the SDK Tester catch the IAP, as it was not in the"Active Transactions" window. Has anyone had any success in doing this? I don't own a Kindle product, nor do I want to have to go out and get one if my current device can suffice. From what I can tell, I have the proper files in place, but I could be wrong. What do you guys suggest? Thank you for your time, lKinx
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.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Lkinx, Sorry for the delay to reply. IAP sandbox testing can be done in non Amazon devices. Please check that you are purchasing the right SKU what is defined in the amazon.sdktester.json. The SKU name what are you passing to PurchasingManager.initiatePurchaseRequest(), should be same as defined the one you have defined in the json file. If it still does not work please get back the device name and OS version so that we can verify it in our end. 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.