PHPackages                             dr/payment-method-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. dr/payment-method-filter

ActiveMagento2-module[Payment Processing](/categories/payments)

dr/payment-method-filter
========================

This module excludes payment methods from checkout by using filters.

161618[5 issues](https://github.com/daniel-rose/magento2-payment-method-filter/issues)PHPCI failing

Since Oct 7Pushed 4y ago7 watchersCompare

[ Source](https://github.com/daniel-rose/magento2-payment-method-filter)[ Packagist](https://packagist.org/packages/dr/payment-method-filter)[ RSS](/packages/dr-payment-method-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/100b43acab88eae07034efc41b055fdd9ea068598d3315a753793bf174ff6e30/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c2d726f73652f6d6167656e746f322d7061796d656e742d6d6574686f642d66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/daniel-rose/magento2-payment-method-filter) [![Coverage Status](https://camo.githubusercontent.com/9a3e924d368283197a7705a7117bac22ab8dec6b00cade8c5abd91f1525b6362/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64616e69656c2d726f73652f6d6167656e746f322d7061796d656e742d6d6574686f642d66696c7465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/daniel-rose/magento2-payment-method-filter?branch=master)

DR\_PaymentMethodFilter
=======================

[](#dr_paymentmethodfilter)

This module excludes payment methods from checkout by using filters.

Description
-----------

[](#description)

This module allows to exclude active payment methods from checkout.

The following table shows the predefined filters which control the state of payment methods:

NameDescriptionGuestFilterThis filter is only for guest checkout. All disallowed payment methods for guests can be set at the system configuration.CustomerFilterExcludes active payment by the customer attribute "disallowed\_payment\_methods". Only available for customer checkout.QuoteContentFilterThe product attribute "disallowed\_payment\_methods" controls which payment method can be removed from the active list. Available for both checkout types.Installation
------------

[](#installation)

### Via composer

[](#via-composer)

Open the command line and run the following commands

```
cd PATH_TO_MAGENTO_2_ROOT
composer require dr/payment-method-filter

```

### Via archive

[](#via-archive)

- Download the ZIP-Archive
- Extract files
- Copy the extracted Files to PATH\_TO\_MAGENTO\_2\_ROOT/app/code/DR/PaymentMethodFilter
- Run the following Commands:

```
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

```

Support
-------

[](#support)

If you have any issues with this extension, open an issue on GitHub (see URL above).

Contribution
------------

[](#contribution)

Any contributions are highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests/).

Developer
---------

[](#developer)

Daniel Rose

- Xing: [https://www.xing.com/profile/Daniel\_Rose16](https://www.xing.com/profile/Daniel_Rose16)

Licence
-------

[](#licence)

[MIT License](https://opensource.org/licenses/MIT)

Copyright
---------

[](#copyright)

(c) 2016 Daniel Rose

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c8ae669ad5d4e25d1564b2ee381e86fb88b3d9f132040a1a6b642de43b7a417?d=identicon)[daniel-rose](/maintainers/daniel-rose)

---

Top Contributors

[![daniel-rose](https://avatars.githubusercontent.com/u/489806?v=4)](https://github.com/daniel-rose "daniel-rose (10 commits)")[![Tjitse-E](https://avatars.githubusercontent.com/u/14849044?v=4)](https://github.com/Tjitse-E "Tjitse-E (3 commits)")

### Embed Badge

![Health badge](/badges/dr-payment-method-filter/health.svg)

```
[![Health](https://phpackages.com/badges/dr-payment-method-filter/health.svg)](https://phpackages.com/packages/dr-payment-method-filter)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
