1. Pre-requisites

Magento 2.3.x or 2.4.x.

2. Installation

To install the module, follow the steps below.

  • Download the module/extension and unzip it.
  • Access your web server directories and upload the content of the folder into
    app/code/Pits/PaymentMethodByCustomerGroup/ directory.
  •  Run the following commands to complete the installation.
    • Enable the module - php bin/magento module:enable.
    • Update of the database - php bin/magento setup:upgrade.
    • Generate and pre-compile classes - php bin/magento setup:di:compile.
    • Deploy static files - php bin/magento setup:static-content:deploy.

3. Product Specification

Payment Restriction based on Customer Group is a Magento 2 extension developed by PIT Solutions which helps admin users to show or hide payment methods for certain customer groups in frontend.

Features

  • Admin can show or hide payment method according to customer group.
  • Payment methods and customer groups are shown in a single page for easy access.
  • Only enabled payment methods shows in the backend configuration payment list.
  • Admin has "allow" and "deny" options.
  • Admin can restrict payment methods for each website.

4. Screenshots / Video

Can access Payment Methods By Customer Group extension from Stores > PITS Configuration > Payment Methods By Customer Group

Available websites are listed in dropdown “Websites”.

The dropdown “Allow/Deny” provides the option to Allow or Deny each payment method for customer groups.

Enabled payment methods are listed, and all available customer groups are listed against each payment method.

Use case 1 : “Allow/Deny” drop-down is selected with “Deny”. None of the payment methodsare denied

Go to Stores > PITS Configuration > Payment Methods By Customer Group. If “Allow/Deny” drop-down is selected with “Deny”, then that particular payment method will not be displayed in checkout for the selected customer groups. None of the payment methods are denied here since no customer group selected in the above configuration.

So, all Payment methods are displayed in checkout.

Use case 2 : “Allow/Deny” drop-down is selected with “Deny”.

Please note that “Allow/Deny” drop-down is selected with “Deny”. Select a customer group to deny that customer group the selected payment method. Here we selected Check / Money order for General customer group and saved it.

In checkout page, the denied payment method “Check / Money order” will NOT be displayed for General customer group.

Use case 3 : “Allow/Deny” drop-down is selected with “Allow”. None of the payment methodsare allowed.

If “Allow/Deny” drop-down is selected with “Allow” and no customer groups are selected, then no payment method will be shown in the frontend.

Use case 4 : “Allow/Deny” drop-down is selected with “Allow”.

Please note that “Allow/Deny” drop-down is selected with “Allow”. Select a customer group to allow that customer group the selected payment method. Here we selected Check / Money order for General customer group and saved it.

Only enabled payment methods in the backend section Stores > Configuration > Sales > Payment Methods will be shown in the "Payment method by customer Group" configuration list.

5. Technical Requirements / Compatible with:

Magento Community 2.3.x or 2.4.x.

6. Supported Languages

English and German languages.

7. Change Log / Release Notes

Version: 1.0.1

  • Compatible with Open Source (CE): 2.4.6.

Version: 1.0.0

  • Admin can show/hide payment method according to customer groups.
  • Allow/Deny option for payment methods.

8. Support

If you have questions use our contact form in webshopextension.com