Magento 2 Payment Restrictions

Magento 2 Payment Restrictions, updated 7/10/24, 9:18 AM

Payment Restrictions Extension for Magento 2 allows you to control and restrict payment methods based on various conditions such as customer groups, shipping methods, order total, and more. This extension helps you manage your store's payment options more effectively, ensuring that customers see only the most relevant payment methods during checkout.

About MageAntsStore

MageAnts is your trusted partner of Magento Custom DevelopmentHyvä theme development solutions provider. Put your trust in us to create an online presence for you. Let us bring you into the digital age to embark on an incredible journey. Enhance your Magento store with our Magento 2 extensions & extend store functionality.

Tag Cloud




Payment Restriction

For Magento 2


USER MANUAL
Supported Version: 2.0, 2.1, 2.2, 2.3, 2.4
www.mageants.com support@mageants.com 1

Table Of Contents
Preface ......................................……………………………………......3
Installation...................................………………………………………..4
Option 1: Magento 2 install extension using COMMAND LINE .........…………..…..4
Option 2: Magento 2 install extension manually ………………………………….......5
Back-end Example ………………………………………………………...……...6

Extension configuration………………………………………………………...6
Front-end Example………………………………………………………………….13
www.mageants.com support@mageants.com 2

Preface:
- 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.
www.mageants.com support@mageants.com 3

Installation:
There are two ways of installing extension in magento2.
1) Using COMMAND LINE.
2) 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 Store → Configuration → Mageants →
PaymentRestriction. The module will be displayed in the admin
panel.
www.mageants.com support@mageants.com 4

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.
www.mageants.com support@mageants.com 5


Back-end 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:


www.mageants.com support@mageants.com 6



General Setting :-

- User can select enable and disable Extension.







www.mageants.com support@mageants.com 7

Menu:
To manage Rule for Please go to Mageants Payment Re-
striction there you can add Rule on particular item. Here
you can manage on all Rule.

www.mageants.com support@mageants.com 8

Create New Rule :-
Click the Add New Rule button to create a Rule or
select the existing one to edit it.
New Rule creation:

www.mageants.com support@mageants.com 9

➢ 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.

www.mageants.com support@mageants.com 10

* 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.


www.mageants.com support@mageants.com 11

Rule Display In Payment Restriction Grid:
www.mageants.com support@mageants.com 12

Front-end Configuration:
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.
www.mageants.com support@mageants.com 13

Thank you!
you have any questions or feature suggestions, please contact us at:
https://www.mageants.com/contact-us.html
Your feedback is absolutely welcome!
www.mageants.com support@mageants.com 14