Download the PHP package mangoweb-sylius/sylius-payment-fee-plugin without Composer
On this page you can find all versions of the php package mangoweb-sylius/sylius-payment-fee-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mangoweb-sylius/sylius-payment-fee-plugin
More information about mangoweb-sylius/sylius-payment-fee-plugin
Files in mangoweb-sylius/sylius-payment-fee-plugin
Download mangoweb-sylius/sylius-payment-fee-plugin
More information about mangoweb-sylius/sylius-payment-fee-plugin
Files in mangoweb-sylius/sylius-payment-fee-plugin
Vendor mangoweb-sylius
Package sylius-payment-fee-plugin
Short Description Payment fee plugin for Sylius.
License MIT
Package sylius-payment-fee-plugin
Short Description Payment fee plugin for Sylius.
License MIT
Please rate this library. Is it a good library?
Informations about the package sylius-payment-fee-plugin
Payment Fee Plugin
Features
- Charge extra fee for using payment method.
- Typical usage: Cash on Delivery.
- Taxes are implemented the same way as taxes for shipping fees.
Installation
- Run
$ composer require mangoweb-sylius/sylius-payment-fee-plugin
. - Register
\MangoSylius\PaymentFeePlugin\MangoSyliusPaymentFeePlugin
in your Kernel. - Your Entity
PaymentMethod
has to implement\MangoSylius\PaymentFeePlugin\Model\PaymentMethodWithFeeInterface
. You can use TraitMangoSylius\PaymentFeePlugin\Model\PaymentMethodWithFeeTrait
.
For guide how to use your own entity see Sylius docs - Customizing Models
Admin
-
Add this to
@SyliusAdmin/PaymentMethod/_form.html.twig
template. - Add this to
AdminBundle/Resources/views/Order/Show/Summary/_totals.html.twig
.
Development
Usage
- Create symlink from .env.dist to .env or create your own .env file
- Develop your plugin in
/src
- See
bin/
for useful commands
Testing
After your changes you must ensure that the tests are still passing.
-
Easy Coding Standard
- PHPStan
License
This library is under the MIT license.
Credits
Developed by manGoweb.
All versions of sylius-payment-fee-plugin with dependencies
PHP Build Version
Package Version
The package mangoweb-sylius/sylius-payment-fee-plugin contains the following files
Loading the files please wait ....