Download the PHP package mangoweb-sylius/sylius-payment-restrictions-plugin without Composer
On this page you can find all versions of the php package mangoweb-sylius/sylius-payment-restrictions-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mangoweb-sylius/sylius-payment-restrictions-plugin
More information about mangoweb-sylius/sylius-payment-restrictions-plugin
Files in mangoweb-sylius/sylius-payment-restrictions-plugin
Package sylius-payment-restrictions-plugin
Short Description Payment restriction plugin for Sylius
License MIT
Informations about the package sylius-payment-restrictions-plugin
Payment Restrictions Plugin
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.
Installation
- Run
$ composer require mangoweb-sylius/sylius-payment-restrictions-plugin
. -
Add plugin class to your
config/bundles.php
: -
Your Entity
PaymentMethod
has to implement\MangoSylius\PaymentRestrictionPlugin\Model\PaymentMethodRestrictionInterface
. You can use TraitMangoSylius\PaymentRestrictionPlugin\Model\PaymentMethodRestrictionTrait
. -
Change
@SyliusAdmin/PaymentMethod/_form.html.twig
. - Create and run doctrine database migrations.
For guide to use your own entity see Sylius docs - Customizing Models
Development
Usage
- Develop your plugin in
/src
- See
bin/
for useful commands
Testing
After your changes you must ensure that the tests are still passing.
License
This library is under the MIT license.
Credits
Developed by manGoweb.