question

alain milly avatar image
alain milly asked

In App error with the app testing service

Hello We are developping the application Home Design 3D for the amazon store with the IAP 2.0 SDK Everything is working fine with the Amazon App tester. But when we try the app testing service, we've got the following error : "Issue : Incorrect usage of Amazon IAP Your app or game has not implemented receiver component or mandatory API calls corresponding to an IAP Purchase that you have initiated. This could lead to failed purchases." We've put the following code in the manifest : Have you got any idea to solve this problem ? Thank you very much
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.

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, The app testing service message indicates that there are issues with your IAP implementation, and this could lead to items that users buy not being delivered. Please double check you have followed the instruction at https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/implementing-iap-2.0, especially the ones about PurchasingService.notifyFulfillment(). Also, I'd double check your IAP receiver, and use our live app testing service to test your IAP in a live environment to make sure IAP items get delivered properly. You can find more information about live app testing here: https://developer.amazon.com/public/resources/development-tools/live-app-testing.
10 |5000

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

alain milly avatar image
alain milly answered
Hello Thanks for the answer You were right, I didn't call the PurchasingService.notifyFulfillment() method. Now, the app testing service don't show any errors or issues. That is fine. So, I tried to submit but we still are rejected, with the following inapp error message : "An error occurred while processing your purchase" I dont understand because everything is working fine when we're testing with the amazon app tester and the json file generated on the console. We don't have any errors or issues in the app testing service. And we even try the live app testing and it also seemed to work. So, from where can the problem come ? Thank you very much
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
Sorry for the late reply. We will check this out and get back to you ASAP. 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.

alain milly avatar image
alain milly answered
Hi, more infos about our problem ;) - the in app works with the json file and the apptester - the app returns us no error now from the App Testing Service - we even tried the Live App Testing and we manged to buy some inapps and received the mail indicating that the inapp had been bought But we still are rejected from submission :'( The amazon team sent us logs. Here are the messages we have with the SDK v2: « PurchasingService.getUserData » returs : onUserDataResponse : ( com.amazon.device.iap.model.UserDataResponse@41d40830, requestId: "20526669-1ba6-4cfa-b0c3-02c58fc123e1", requestStatus: "SUCCESSFUL », userData: "{ "marketplace": "US", "userId": "pYpPXrrT3MjHbkkvzWCQwzlx-qRN0mqPIZmBOoq1QU4=" } ») so it seems to work But, when we try to get infos about skus, « PurchasingService.getProductData » returns this : onProductDataResponse : (com.amazon.device.iap.model.ProductDataResponse@41c93db0, requestId: "6b081845-4f97-4798-a98e-7ca5a926e7b0", unavailableSkus: [hd3d_free_to_full_version_amazon], requestStatus: "SUCCESSFUL", productData: {}) or onProductDataResponse : (com.amazon.device.iap.model.ProductDataResponse@41cb2248, requestId: "f61097c3-b3cb-4663-875d-a38fec8bdc23", unavailableSkus: [hd3d_free_to_gold_version_amazon], requestStatus: "SUCCESSFUL", productData: {}) apparently the skus are not available but, in the amazon console, the skus seem to be well configured. We also tried to implement the SDK v1 but we still have been rejected, apparently for the same reasons, although we don’t have the logs yet. Has someone got any idea ?
10 |5000

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

WangChao@Amazon avatar image
WangChao@Amazon answered
Hello, Your app, Home Design 3D - Free, is Live now. Please let us know if you get further questions. 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.