Amazon is not defined - Javascript error

Hi, I have a problem with Login ad pay with amazon widget.

In sendbox mode the url is:

In Live mode the url is:

In sendbox mode everything works correctly, in Live mode I have a Javascript error in console (amazon is not defined).

What is the problem?

The error “amazon is not defined” typically occurs when there is an issue with loading the required JavaScript library for the Amazon Pay widget. Here are a few possible reasons and solutions for this problem:

  1. Verify API credentials: Double-check that you have entered the correct API credentials (Access Key, Secret Key) for the Live mode in your integration. Make sure there are no typographical errors or missing characters. Incorrect credentials can cause the JavaScript library to fail to load properly.
  2. Check integration settings: Ensure that you have correctly configured the integration settings for the Live mode. Verify that you have selected the appropriate region (in this case, ‘uk’) and that you have enabled the necessary options for the widget.
  3. Clear cache and cookies: Clear your browser cache and cookies to ensure that you are loading the latest version of the JavaScript library. Outdated or cached versions of the library can cause conflicts and errors.
  4. Network issues: Check if there are any network issues or firewall restrictions preventing the proper loading of the JavaScript library in the Live mode. You can try accessing the library URL directly in your browser to see if it loads successfully. If it doesn’t, it could indicate a network issue that needs to be resolved.
  5. Contact Amazon Pay support: If the issue persists, it’s recommended to reach out to the Amazon Pay support team for further assistance. They can provide specific guidance and help troubleshoot the issue related to the Live mode integration.

By ensuring the correct API credentials, proper configuration, and resolving any network or caching issues, you should be able to resolve the “amazon is not defined” error and successfully load the Amazon Pay widget in Live mode.