PHPackages                             3brs/sylius-payment-restrictions-plugin - 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. 3brs/sylius-payment-restrictions-plugin

ActiveSylius-plugin[Payment Processing](/categories/payments)

3brs/sylius-payment-restrictions-plugin
=======================================

Payment restriction plugin for Sylius

v3.1.0(3mo ago)313.4k↓28.6%5[3 issues](https://github.com/3BRS/sylius-payment-restrictions-plugin/issues)MITPHPPHP ^8.3

Since Nov 9Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/3BRS/sylius-payment-restrictions-plugin)[ Packagist](https://packagist.org/packages/3brs/sylius-payment-restrictions-plugin)[ RSS](/packages/3brs-sylius-payment-restrictions-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (75)Versions (11)Used By (0)

 [ ![](https://camo.githubusercontent.com/bb0c16caf210bea68e0e59fc11e0844dc47097f9aeb8b388c3de5f1414d4d1c0/68747470733a2f2f33627273312e667261312e63646e2e6469676974616c6f6365616e7370616365732e636f6d2f336272732f6c6f676f2f334252532d6c6f676f2d73796c6975732d3230302e706e67) ](https://www.3brs.com)

 Payment Restrictions Plugin
 [ ![](https://camo.githubusercontent.com/16485780c3281df322119615c41e6d2a77bf873f931a144a45dccce67010ee10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f336272732f73796c6975732d7061796d656e742d7265737472696374696f6e732d706c7567696e2e737667) ](https://packagist.org/packages/3brs/sylius-payment-restrictions-plugin "License") [ ![](https://camo.githubusercontent.com/9ef9c9afd289654846690a5464cecacca6756b2335d520c0c4e6da349bbfce6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f336272732f73796c6975732d7061796d656e742d7265737472696374696f6e732d706c7567696e2e737667) ](https://packagist.org/packages/3brs/sylius-payment-restrictions-plugin "Version") [ ![](https://camo.githubusercontent.com/83d5c36a7b5eb54b6949d907004080aa88b3111fd4c2e7891701affa85f36770/68747470733a2f2f636972636c6563692e636f6d2f67682f334252532f73796c6975732d7061796d656e742d7265737472696374696f6e732d706c7567696e2e7376673f7374796c653d736869656c64) ](https://circleci.com/gh/3BRS/sylius-payment-restrictions-plugin "Build status")
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#----payment-restrictions-plugin----------------------------------------------------)

Features
--------

[](#features)

- Restrict payment method by zone. This enables to limit selected payment methods to specific zones or areas from the delivery address.
- Restrict payment method by shipping method - this means that it can disable specific shipment-payment combinations.

 [![](https://github.com/3BRS/sylius-payment-restrictions-plugin/raw/sylius_2_upgrade_AK/doc/admin.png?raw=true)](https://github.com/3BRS/sylius-payment-restrictions-plugin/blob/sylius_2_upgrade_AK/doc/admin.png?raw=true)

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

[](#installation)

1. Run `$ composer require 3brs/sylius-payment-restrictions-plugin`
2. Add plugin class to your `config/bundles.php`

    ```
    return [
       ...
       ThreeBRS\SyliusPaymentRestrictionPlugin\ThreeBRSSyliusPaymentRestrictionPlugin::class => ['all' => true],
    ];
    ```
3. Your Entity `PaymentMethod` has to implement `\ThreeBRS\SyliusPaymentRestrictionPlugin\Model\PaymentMethodRestrictionInterface`. You can use Trait `ThreeBRS\SyliusPaymentRestrictionPlugin\Model\PaymentMethodRestrictionTrait`

    ```
