0

Plugin to hide payment method based on billing address country ? Magento 2

7
  • Why plugin ? you can disable specific payment method for specific country from admin
    – Pawan
    Commented Apr 18, 2020 at 13:38
  • Will it dynamically, appear & disappear depending upon the the billing address ? Commented Apr 18, 2020 at 16:34
  • it will completely disable specif payment method for that country
    – Pawan
    Commented Apr 19, 2020 at 4:46
  • Yes but what if user changes country to the allowed country? Will payment method appear on frontend ? Commented Apr 19, 2020 at 6:33
  • Yes,if allowed country is selected payment metod will display...
    – Pawan
    Commented Apr 19, 2020 at 8:46

1 Answer 1

1

There is no need of plugin/module.

It can be easily managed form Admin configuration:

go to Stores > Configuration > Sales > Payment Methods

in most of the payment method you will see option for:

Payment from Applicable Countries : Change it to Specific Countries

Payment from Specific Countries : Exclude country you don't wish to enable payment method.

1
  • 1
    Great answer ! i appreciate your help. Commented Apr 19, 2020 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.