question

mobilepie avatar image
mobilepie asked

Differences between Test environment and Live

Hi, Does anyone have any advice to avoid the problem we have where IAP (consumables) work fine in the Test environment but are reported to not work on the Live environment (when trying to go through submission)? Regards Richard
iap
10 |5000 characters needed characters left characters exceeded

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

Samuel@Amazon avatar image
Samuel@Amazon answered
Hi Mobilepie, Please check below points to make sure that your IAP items works properly in both Test and Live environments. 1) Invalid_Sku: This is a common mistake made while testing IAP. Defining a SKU in amazon.sdktester.json file for testing in Test environment but might not be using same SKU when it goes to Live. SKU's are case sensitives and you should also check for typos! 2) Proguard: If you are not setting up proguard config file properly then there is a possibility of IAP jar getting corrupted. Please check for correct proguard config file and for proper setup. If you check for the above said points in your IAP, then you can avoid problems with IAP. Hope this information helps you. Thanks again!
10 |5000 characters needed characters left characters exceeded

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

Heghine Hakobyan avatar image
Heghine Hakobyan answered
Hi everyone, I have an android app, which is using IAP. I'm sending PurchasingManager.initiateGetUserIdRequest() and getting the user ID successfully in onGetUserIdResponse. After getting the response the PurchasingManager.initiatePurchaseRequest("sku") is invoked, but unfortunately the desired onPurchaseResponse seems never be called. My applications IAP items are approved. Any help on this?
10 |5000 characters needed characters left characters exceeded

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

Heghine Hakobyan avatar image
Heghine Hakobyan answered
I have forgotten to add that my application was working fine with Amazon SDK Tester.
10 |5000 characters needed characters left characters exceeded

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

mobilepie avatar image
mobilepie answered
Many thanks Samuel - we've double checked the SKU strings several times and all seems fine (and we're not using ProGuard) - so still stumped about it! Is there anything else that can cause an INVALID_SKU reply? (for instance the state of the IAPs in the dashboard?) Many thanks Richard
10 |5000 characters needed characters left characters exceeded

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

Samuel@Amazon avatar image
Samuel@Amazon answered
Hello Richard, Invalid_Sku's occurs for above mentioned reasons. You can go through our Amazon In-App purchasing guide for more information on SKUs and IAP related information. Please find the link given below, Link: https://developer.amazon.com/sdk/in-app-purchasing/documentation/developer-guide.html Thank you.
10 |5000 characters needed characters left characters exceeded

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

rkamalya avatar image
rkamalya answered
Hi mobilepie, I have the same situation in my application described by you. I would like to know if the problem is solved for you and if yes, could you pls share some tips on it? Thank you.
10 |5000 characters needed characters left characters exceeded

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

Samuel@Amazon avatar image
Samuel@Amazon answered
Hi rkamalya, please refer to the above posts and developer guide link to have more information regarding this. Thank you.
10 |5000 characters needed characters left characters exceeded

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