=================================
- When user's cart or coupon code was matched/used, this module will only allow payment method which belong to the rules in admin setting.
- Limit payment method with coupon code sale rules.
- Copy module folder to your
magento_root_folder/app/code
. - Go to your
magento_root_folder
. Run these commands:php ./bin/magento setup:upgrade
php ./bin/magento setup:di:compile
php ./bin/magento setup:static-content:deploy
- Go to
Marketing
->Cart Price Rules
- Choose your payment available for the rules.
#Example:
- Your website has 3 payment methods: COD, Paypal, Braintree.
- You settings up 2 rules whose available for Paypal and another one for Braintree.
- If customer's cart passed those rules, customer can only place order with Paypal and Braintree - COD will be disable.
- Magento version 2.2.x., Magento version 2.3.x.
- For any issue please help me open an issue.