question

jd avatar image
jd asked

IAP in Unity app

I am having problems with Amazon's 2.0 IAP plug-in for Unity. I have tested my app by side loading the APK with the local app tester and everything works perfectly. But testing the same APK uploaded for a live app test does not seem to be getting back any responses from Amazon. If I go ahead and make a purchase request even though I did not get back user/product information I get the amazonappstore pop up with the text "An error occurred while processing your purchase." Going back over information about implementing with the Unity plug-in there is a step talking about using a Prime31 menu to generate the AndroidManifest.xml but that sounds like outdated instructions since that appears to be another 3rd party tool. And elsewhere it talks about generating AndroidManifest.xml by renaming the sample or updating your existing one with appropriate information. I have verified mine contains the relevant info: ... ... ... Again, I assume this must be set up correctly since everything works perfectly when testing the same APK side loaded with the local app tester. Any idea what the issue might be? Let me know what I should check or what additional information I should provide. Thanks.
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.

jd avatar image
jd answered
Looking back at my in-app purchase it is at the stage 'ready to submit'. I thought I saw that you would submit the production app and the in-app purchases after all live testing was complete (live testing would see the pending items) but searching through other post I saw something about the in-app item needing to be live for testing. So I have advanced it and it is now at 'approved'. Hopefully that resolves it once it is considered published.
10 |5000

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

jd avatar image
jd answered
The in-app item is now live but it doesn't seem to have resolved the problem. It still doesn't retrieve product info and calling purchase displays that error message.
10 |5000

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

jd avatar image
jd answered
Everything is working now. Just took it a while to actually be live after the status changed.
10 |5000

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

Levon@Amazon avatar image
Levon@Amazon answered
Hi jd, Welcome to dev forums and thanks for posting! We are glad you were able to resolve this. Normally it can take up to 4 hours for submitted apps/items cache to get refreshed and become available on your device. Please let us know if you have any 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.