Why do I get a 404 error for adyen.min.js after activating Adobe Commerce's JS minification? (Magento)

Check Adobe Commerce’s minification

If you get a 404 when accessing adyen.min.js ,this could be happening because you enabled Adobe Commerce's minification. However, the minified version of our `adyen.js` doesn’t exist with the following URL: https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/3.4.0/adyen.min.js.

Remove .min out of the URL to get the Javascript file.

Add an exclusion rule

To resolve this, add an exclusion rule to your minifier. You have to create/update the configuration value for the dev/js/minify_exclude path to include the URL or a pattern of the URL.

For example:

INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/js/minify_exclude', 'adyen.com/checkoutshopper');

This SQL query could override a previous configuration if you have one, so you should check if it needs to be updated instead.

The illustration of support agent wearing a headset.

Do you need additional help?

Contact our support team

Send us the details of your issue by adding images or screenshots.

Submit a request