Download the PHP package 3brs/sylius-payment-restrictions-plugin without Composer
On this page you can find all versions of the php package 3brs/sylius-payment-restrictions-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download 3brs/sylius-payment-restrictions-plugin
More information about 3brs/sylius-payment-restrictions-plugin
Files in 3brs/sylius-payment-restrictions-plugin
Download 3brs/sylius-payment-restrictions-plugin
More information about 3brs/sylius-payment-restrictions-plugin
Files in 3brs/sylius-payment-restrictions-plugin
Vendor 3brs
Package sylius-payment-restrictions-plugin
Short Description Payment restriction plugin for Sylius
License MIT
Package sylius-payment-restrictions-plugin
Short Description Payment restriction plugin for Sylius
License MIT
Please rate this library. Is it a good library?
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.
Requirements
| Package | Version |
|---|---|
| PHP | ^8.3 |
| Sylius | ^2.1 |
| Symfony | ^7.4 || ^8.0 |
Installation
- Run
$ composer require 3brs/sylius-payment-restrictions-plugin -
Add plugin class to your
config/bundles.php -
Your Entity
PaymentMethodhas to implement\ThreeBRS\SyliusPaymentRestrictionPlugin\Model\PaymentMethodRestrictionInterface. You can use TraitThreeBRS\SyliusPaymentRestrictionPlugin\Model\PaymentMethodRestrictionTrait - Create and run doctrine database migrations
- how to use your own entity see Sylius docs - Customizing Models
Development
Usage
- Alter plugin in
/src - See
bin/dir for useful commands
Testing
After your changes you must ensure that the tests are still passing.
Opening Sylius with your plugin
- Install symfony CLI command: https://symfony.com/download
- hint: for Docker (with Ubuntu) use Debian/Ubuntu — APT based
Linux installation steps as
rootuser and withoutsudocommand- you may need to install
curlfirstapt-get update && apt-get install curl --yes
- you may need to install
- hint: for Docker (with Ubuntu) use Debian/Ubuntu — APT based
Linux installation steps as
- Run app
- change
APP_ENVtodevif you need it
License
This library is under the MIT license.
Credits
All versions of sylius-payment-restrictions-plugin with dependencies
PHP Build Version
Package Version
The package 3brs/sylius-payment-restrictions-plugin contains the following files
Loading the files please wait ...