How to make the Magenest Sage Pay module compatible with the Magento's JavaScript minification mode?
Locate the: app/code/Magenest/SagePay/view/frontend/requirejs-config.js
.
Replace the block:
magenest_sagepay_pi_test: 'https://pi-test.sagepay.com/api/v1/js/sagepay.js',
magenest_sagepay_pi_live: 'https://pi-live.sagepay.com/api/v1/js/sagepay.js'
with the following one:
magenest_sagepay_pi_test: 'https://pi-test.sagepay.com/api/v1/js/sagepay.js?v=mage2pro',
magenest_sagepay_pi_live: 'https://pi-live.sagepay.com/api/v1/js/sagepay.js?v=mage2pro'