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

Abandoned → [3brs/sylius-payment-restrictions-plugin](/?search=3brs%2Fsylius-payment-restrictions-plugin)Sylius-plugin[Payment Processing](/categories/payments)

mangoweb-sylius/sylius-payment-restrictions-plugin
==================================================

Payment restriction plugin for Sylius

v1.0.0(6y ago)617.3k↓66.7%1[1 issues](https://github.com/mangoweb-sylius/SyliusPaymentRestrictionsPlugin/issues)MITPHPPHP ^7.3CI failing

Since Jan 16Pushed 4y ago3 watchersCompare

[ Source](https://github.com/mangoweb-sylius/SyliusPaymentRestrictionsPlugin)[ Packagist](https://packagist.org/packages/mangoweb-sylius/sylius-payment-restrictions-plugin)[ RSS](/packages/mangoweb-sylius-sylius-payment-restrictions-plugin/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (26)Versions (8)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/38423357?s=200&v=4) ](https://www.mangoweb.cz/en/)

 Payment Restrictions Plugin
 [ ![](https://camo.githubusercontent.com/b1493e42372d9c5312f65721ce85af40686f9db348155c9fcf6acafbeec43159/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e676f7765622d73796c6975732f73796c6975732d7061796d656e742d7265737472696374696f6e732d706c7567696e2e737667) ](https://packagist.org/packages/mangoweb-sylius/sylius-payment-restrictions-plugin "License") [ ![](https://camo.githubusercontent.com/a3cdd1b0a49c3a507697f1fc4e2f282513502ce0796f25fb07b6c89945b7697d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e676f7765622d73796c6975732f73796c6975732d7061796d656e742d7265737472696374696f6e732d706c7567696e2e737667) ](https://packagist.org/packages/mangoweb-sylius/sylius-payment-restrictions-plugin "Version") [ ![](https://camo.githubusercontent.com/e1afd0cc761b6b550877037a178633dfbb7ebbbf4c0b1280a8f5c4ba6666467c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616e676f7765622d73796c6975732f53796c6975735061796d656e745265737472696374696f6e73506c7567696e2f6d61737465722e737667) ](https://travis-ci.org/mangoweb-sylius/SyliusPaymentRestrictionsPlugin "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://raw.githubusercontent.com/mangoweb-sylius/SyliusPaymentRestrictionsPlugin/master/doc/admin.png)](https://raw.githubusercontent.com/mangoweb-sylius/SyliusPaymentRestrictionsPlugin/master/doc/admin.png)

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

[](#installation)

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

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

    ```
