The Home for
Magento Excellence

Explore. Discover. Elevate. #magento

162
Modules Tested
98
Ready for Magento 2.4
64
Need Your Help
Potentially Abandoned v1.0.1
Ready to Install
Build tests pass on Magento 2.4.8-p3

Galactic Labs - Customer Group Payment Filters

galacticlabs/customer-group-payment-filters

Magento 2 extension to exclude payment methods for selected customer groups.

15,892
Downloads
Below average
17
GitHub Stars
Below average
7y ago
Last Release
3
Open Issues

Quality Score

3/5
Installs via Composer
DI compiles correctly
Templates compile
92 warning, 3 error
PHPStan Level 1

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.1 on Magento 2.4.8-p3
Dec 15, 2025
v1.0.1 on Magento 2.4.8-p2
Aug 14, 2025
v1.0.1 on Magento 2.4.8
May 18, 2025
v1.0.1 on Magento 2.4.7-p4
Feb 15, 2025
v1.0.1 on Magento 2.4.7-p3
Oct 15, 2024
v1.0.1 on Magento 2.4.7-p2
Sep 8, 2024

+6 older tests

GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Share This Module's Status

Galactic Labs - Customer Group Payment Filters Magento compatibility status badge

README

Loaded from GitHub

Galactic Labs - Customer Group Payment Filters

This simple module adds a new section to the Customer Groups admin page, allowing you to define payment options that should not be allowed for the chosen customer group.

Note: These settings will affect both frontend and backend orders.

Installation

Require the module

composer require galacticlabs/customer-group-payment-filters

Enable the module

php bin/magento module:enable GalacticLabs_CustomerGroupPaymentFilters

Run setup to install module and set up table(s)

php bin/magento setup:upgrade

Usage

Once installed, you can choose which payment methods should be restricted by going to Stores > Other Settings > Customer groups and selecting the group you would like to place restrictions on.

The edit screen has a new section called Disallowed Payment Options. This contains a multiselect list of the payment options in the Magento system. Choose the ones you'd like to disable for the customer group, then save for changes to take effect. These options are also available when creating a new customer group.

Note: These options will not affect anything if the chosen payment options are themselves not enabled.

Edit Page Screenshot

Bugs/Feature Requests & Contribution

Please do open a pull request on GitHub should you want to contribute, or create an issue.

Todo

I plan on cleaning this up a bit and also adding some tests to prove functional correctness. I'd also be interested in discussions on how I could have achieve the same results using alternative/better techniques. I don't like the fact i'm accessing the request object inside the repository save method. Is it possible to perform this action in the admin controller instead? Unfortunately I hit an issue when saving a new customer group in that I couldn't access the ID of the new group in the same request. I'm sure with more time I would of figured it but this was created very quickly.

  • Caching should be added

License

MIT - Do as you wish 👍

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules