Test IAP in Production Mode
Vega supports Live App Testing (LAT), which allows you to test your app in an Amazon production environment before it's live in Amazon's production app catalog. If you want to test your IAP content with LAT you need to enable production mode on your app. Configure your app's public key and add permissions to your app manifest to enable production mode.
- Configure your app's public key
- Add IAP permissions
- Remove config files from tmp folder
- Live App Testing
Configure your app's public key
The public key, which is unique per app, establishes a secure communication channel between the Amazon Appstore and your app. When you generate the public key from the Developer Console, Amazon generates a corresponding private key. These public and private keys form a key pair to sign license responses. Through this key pairing, you ensure that the users who install your app are authorized.
To configure your existing app with the public key:
- Log into the Developer Console with your developer account.
- Go to Apps & Services > My Apps. Then click your app. If you don't already have an app, see Submit Your App to the Amazon Appstore.
- Create a new version of your app. In the area below your app's name, click Upcoming Version.
- Go to the Upload Your App File screen.
- In the Additional information section, click View public key.
-
In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.
PEM file download link - Copy the AppstoreAuthenticationKey.pem file. Then paste it into the assests/raw folder of your app's root directory.
Add IAP permissions
In your app's manifest.toml file, add the following IAP permissions.
[wants]
[[wants.service]]
id = "com.amazon.iap.core.service"
[[wants.module]]
id = "/com.amazon.iap.core@IIAPCoreUI"
Remove config files from tmp folder
To use production mode, you need to remove the files from the tmp folder if they still exist.
- Navigate to your app's /tmp folder. You should see a subfolder /scratch/your-app-id.
- In this subfolder, check for a file named amazon.config.json.
- If you have the amazon.config.json file, remove it.
You will need to push the config file back to your tmp folder if you need to test in sandbox mode again.
Live App Testing
After you enable production mode, you can continue with LAT for Vega.
Last updated: Sep 30, 2025