Magento 2 Payment Restrictions

Magento 2 Payment Restrictions extension developed by Meetanshi helps restricting payment methods based on various Product Attributes, Cart Attributes, Shipping Address, Store Views, and Customer Groups.


Table of Content

  1. Extension Installation Guide
  2. Payment Restriction Rules
  3. Add New Rule
  4. Conditions on Cart Attributes
  5. Conditions on Product Attributes


  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush
  • That’s it.


  1. Payment Restrictions Rules
    The admin can create new rules to restrict payment methods based on business needs. Already created rules will be displayed in backend under>Sales à Payment Restrictions.


  1. Add New Rule
    To add a new rule, login to Magento 2, move to Sales > Payment Restrictions, click “Add Rule” button. Here, you can find various settings for the rule.
  • Rule Name: Define a rule to recognize it easily.
  • Status: Activate the rule from the dropdown.
  • Payment Methods: Select payment methods from the list to restrict if the orders meet the condition.
  • Customer Groups: Select customer groups to restrict payment method for.
  • Store: Select stores to restrict payment method for.


  1. Conditions on Cart Attributes
    The extension facilitates to set the condition on cart attributes. Under the conditions tab, select various attributes and define the condition.


  1. Conditions on Product Attributes
    Apart from cart attributes, extension avails the facility to set conditions on product attributes as well. From the Payment Restrictions Options, in the Conditions tab, set the conditions based on product attributes to apply on the rule.


Once the payment restriction rules are defined and enabled, the extension will restrict payment methods for the customers in frontend based on set conditions.