PHPackages                             fond-of-oryx/payment-product-restriction - 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. fond-of-oryx/payment-product-restriction

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

fond-of-oryx/payment-product-restriction
========================================

1.0.2(4y ago)0420MITPHPPHP &gt;=7.4

Since Mar 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fond-of-oryx/payment-product-restriction)[ Packagist](https://packagist.org/packages/fond-of-oryx/payment-product-restriction)[ RSS](/packages/fond-of-oryx-payment-product-restriction/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (5)Versions (5)Used By (0)

payment product restriction
===========================

[](#payment-product-restriction)

[![license](https://camo.githubusercontent.com/739ef2f68d588b7489fcd18b03d6b5b4c197413478583bd4a3f92e7f2afae48c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666f6e642d6f662d6f7279782f7061796d656e742d70726f647563742d7265737472696374696f6e2e737667)](https://packagist.org/packages/fond-of-oryx/payment-product-restriction)

What it does
------------

[](#what-it-does)

restriction on products for payment methods

Installation
------------

[](#installation)

```
composer require fond-of-oryx/payment-product-restriction

```

Usage
-----

[](#usage)

register the plugin in your dependency provider

i.E.: Pyz\\Zed\\Payment\\PaymentDependencyProvider.php

```
/**
 * @return array|array
 */
protected function getPaymentMethodFilterPlugins(): array
{
    return [
        ...,
        new PaymentProductRestrictionPaymentMethodFilterPlugin(),
    ];
}

```

add the following configuration to your config-file

```
$config[PaymentProductRestrictionConstants::BLACKLISTED_PAYMENT_METHODS_PRODUCT_ATTRIBUTE] = 'blacklisted_payment_methods';

```

The attribute where the blacklisted payment methods are stored is expected a comma separated list. The list should contain the specific payment methods from the shop that are not permitted for the product.

\####Example

```
$product = [
    'abstract_attributes' => [
        '_' => [
            'blacklisted_payment_methods' => 'invoice',
        ]
    ]
]

```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~15 days

Total

4

Last Release

1563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f5bd8b1a3358200680cbaf5d0dce827afb0569cc997877854354cc70bcf5a61?d=identicon)[julianzimmermann](/maintainers/julianzimmermann)

---

Top Contributors

[![DerCalli](https://avatars.githubusercontent.com/u/35733274?v=4)](https://github.com/DerCalli "DerCalli (6 commits)")

### Embed Badge

![Health badge](/badges/fond-of-oryx-payment-product-restriction/health.svg)

```
[![Health](https://phpackages.com/badges/fond-of-oryx-payment-product-restriction/health.svg)](https://phpackages.com/packages/fond-of-oryx-payment-product-restriction)
```

###  Alternatives

[pagseguro/php

Biblioteca de integração com o PagSeguro

23260.3k6](/packages/pagseguro-php)

PHPackages © 2026

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