IAP works perfectly in Live App Testing for our game. No player has any problems buying any of the products. But after submitting the game to Amazon for release they say that IAP does not work and sent us an image of a message box with the title "An error occurred while processing your puchase".
From the log they sent us we can see that onProductDataResponse is called and that getRequestStatus returns SUCCESSFUL. But getProductData obviously returns an empty set. How can this work in Live App Testing but not when Amazon tests the app?
We also noted this in the log from Amazon:
2023-08-24 10:05:56.759 25816-25842 com.amazon...Identifier pid-25816 I Finding API Key for xxxxxx
2023-08-24 10:05:56.772 25816-25842 com.amazon...urceParser pid-25816 I Unable to get api key asset document: api_key.txt
2023-08-24 10:05:56.772 25816-25842 com.amazon...urceParser pid-25816 W Unable to get API Key from Assests
2023-08-24 10:05:56.772 25816-25842 com.amazon...urceParser pid-25816 I Attempting to parse API Key from meta data in Android manifest
2023-08-24 10:05:56.773 25816-25842 com.amazon...urceParser pid-25816 I Attempting to parse API Key from meta data in Android manifest
2023-08-24 10:05:56.775 25816-25842 com.amazon...KeyDecoder pid-25816 I Begin decoding API Key for packageName=xxxxxx
2023-08-24 10:05:56.776 25816-25842 com.amazon...ecoder.PII pid-25816 D APIKey:<obscured>
2023-08-24 10:05:56.776 25816-25842 com.amazon...KeyDecoder pid-25816 W Unable to decode APIKey for pkg=xxxxxx
We don't use any Amazon sdk other than the one for IAP. Are we still required to have an api_key.txt file in the assets? We thought it was only required when using ADM.
We're kind of stuck here.