as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

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

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:

  1. Log into the Developer Console with your developer account.
  2. 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.
  3. Create a new version of your app. In the area below your app's name, click Upcoming Version.
  4. Go to the Upload Your App File screen.
  5. In the Additional information section, click View public key.
  6. In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.

    The Public Key window showing a public key string. A download icon followed by the link text 'AppstoreAuthenticationKey.pem' is shown.
    PEM file download link
  7. 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.

Copied to clipboard.

[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.

  1. Navigate to your app's /tmp folder. You should see a subfolder /scratch/your-app-id.
  2. In this subfolder, check for a file named amazon.config.json.
  3. 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