Disable specific payment methods on checkout page when cart have at least one product from specific category.
- Install the module composer by running
composer require magelearn/module-restrictpayment
- Enable the module by running
php bin/magento module:enable Magelearn_RestrictPayment
- apply database updates by running
php bin/magento setup:upgrade
- Flush the cache by running
php bin/magento cache:flush
- Clone or unzip this repository to
app/code/Magelearn/RestrictPayment
- Enable the module by running
php bin/magento module:enable Magelearn_RestrictPayment
- Apply database updates by running
php bin/magento setup:upgrade
- Flush the cache by running
php bin/magento cache:flush
This module has been tested and validated to work on Magento versions 2.3 to 2.4.2.
If you find a bug or issue please create a new issue here and include as much detail and context as possible including screenshots.
This module is licensed under the Open Software License V3.0 which you can refer to here.