Table of Contents
View Magento 2 Payment Restrictions Extension Detail Page for Features and Demo
Documentation for Payment Restriction
Preference
- The Payment Restriction extension for Magento 2 lets you add new Rule For Payment Restriction. Display all created Rule on a backend grid.
- Create Multiple Rules For Restrict Payment Method Based On Various Condition And Configuration. Display Different Payment Methods For Orders Depending On Cart Attribute.
- Also Apply Restriction on Shipping Address And Customer Group.
- You can Apply Shipping Restriction Rule On Shipping Method, Subtotal, Category, Particular Sku, Zipcode, Shipping Country, Etc.
Installation
There are two ways of installing extension in magento2.
- Using COMMAND LINE.
- Manually Install extension.
Option 1: Magento 2 install extension using COMMAND LINE (Recommended)
Follow below steps to install extension from the command line.
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory. If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management.
Step 4: Enter the following at the command line:
Php bin/magento setup:upgrade
Php bin/magento setup:static-content:deploy
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → PaymentRestriction, the module will be displayed in the admin panel.
Option 2: Magento 2 install extension manually
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management Edit app/etc/config.php file and add one line code: ‘Mageants_PaymentRestriction’ ⇒ 1
Step 4: Disable the cache under System → Cache Management
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → PaymentRestriction, the module will be displayed in the admin panel.
Backend Example
After Installation of Extension login to magento admin panel to set configuration of the extension.
As per below screen shot you can set all the settings here.
Extension configuration:
General Setting :-
- User can select enable and disable Extension.
Menu:
To manage Rule for Please go to Mageants Payment Restriction there you can add Rule on particular item. Here you can manage on all Rule.
Create New Rule :-
- Click the Add New Rule button to create a Rule or select the existing one to edit it.
New Rule creation:
Name: Write name of the payment rule to be created. Status: Activate or deactivate the rule. Store View: Select store view(s) to apply payment restriction rule for. Customer Group: Select customer group(s) to apply payment restriction rule for. Payment Method: Select payment method(s) to restrict access. From Date: Select start date to apply rule effect on frontend from. To Date: Select end date to keep rule effectively applied on frontend. Priority: Specify priority in number to consider rule from all created rule.
Condition - tree- if there are some conditions, the rule will be applied only when the conditions are met. If there are no conditions set, the rule will be active all the time.
Rule Display In Payment Restriction Grid:
Frontend Example
See the example of rule with different Method like (Customer group,Status,Priority,date,Store View And Condition Rule) Restrict on Payment Method.
:- Restrict COD if subtotal is less than 50.