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

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

mangoweb-sylius/sylius-payment-fee-plugin
=========================================

Payment fee plugin for Sylius.

v0.3.0(5y ago)510.2k15[3 issues](https://github.com/mangoweb-sylius/SyliusPaymentFeePlugin/issues)[1 PRs](https://github.com/mangoweb-sylius/SyliusPaymentFeePlugin/pulls)MITPHPPHP ^7.3CI failing

Since Dec 7Pushed 2y ago3 watchersCompare

[ Source](https://github.com/mangoweb-sylius/SyliusPaymentFeePlugin)[ Packagist](https://packagist.org/packages/mangoweb-sylius/sylius-payment-fee-plugin)[ RSS](/packages/mangoweb-sylius-sylius-payment-fee-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (22)Versions (4)Used By (0)

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

Payment Fee Plugin
 [ ![](https://camo.githubusercontent.com/c8036a99a4f53de0c185c2aaa1d0915761e378927ea5168a3658fa35e5ba511e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e676f7765622d73796c6975732f73796c6975732d7061796d656e742d6665652d706c7567696e2e737667) ](https://packagist.org/packages/mangoweb-sylius/sylius-payment-fee-plugin "License") [ ![](https://camo.githubusercontent.com/fd93170ab63496526ba6b58aca44436b39b9eea2771648ddf82568d9b36c4b99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e676f7765622d73796c6975732f73796c6975732d7061796d656e742d6665652d706c7567696e2e737667) ](https://packagist.org/packages/mangoweb-sylius/sylius-payment-fee-plugin "Version") [ ![](https://camo.githubusercontent.com/6be4c4469dcd54bc79958ba126774ecc121c7630e7f86a5172211bae5b42e340/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616e676f7765622d73796c6975732f53796c6975735061796d656e74466565506c7567696e2f6d61737465722e737667) ](http://travis-ci.org/mangoweb-sylius/SyliusPaymentFeePlugin "Build status")
================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

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

Features
--------

[](#features)

- Charge extra fee for using payment method.
- Typical usage: Cash on Delivery.
- Taxes are implemented the same way as taxes for shipping fees.

 [![](https://raw.githubusercontent.com/mangoweb-sylius/SyliusPaymentFeePlugin/master/doc/admin.png)](https://raw.githubusercontent.com/mangoweb-sylius/SyliusPaymentFeePlugin/master/doc/admin.png)

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

[](#installation)

1. Run `$ composer require mangoweb-sylius/sylius-payment-fee-plugin`.
2. Register `\MangoSylius\PaymentFeePlugin\MangoSyliusPaymentFeePlugin` in your Kernel.
3. Your Entity `PaymentMethod` has to implement `\MangoSylius\PaymentFeePlugin\Model\PaymentMethodWithFeeInterface`. You can use Trait `MangoSylius\PaymentFeePlugin\Model\PaymentMethodWithFeeTrait`.

For guide how to use your own entity see [Sylius docs - Customizing Models](https://docs.sylius.com/en/1.3/customization/model.html)

### Admin

[](#admin)

1. Add this to `@SyliusAdmin/PaymentMethod/_form.html.twig` template.

```

	{{ 'mango-sylius.ui.payment_charges'|trans }}
	{{ form_row(form.calculator) }}
	{% for name, calculatorConfigurationPrototype in form.vars.prototypes %}

	{% endfor %}

		{% if form.calculatorConfiguration is defined %}
			{% for field in form.calculatorConfiguration %}
				{{ form_row(field) }}
			{% endfor %}
		{% endif %}

```

2. Add this to `AdminBundle/Resources/views/Order/Show/Summary/_totals.html.twig`.

```
{% set paymentFeeAdjustment = constant('MangoSylius\\PaymentFeePlugin\\Model\\AdjustmentInterface::PAYMENT_ADJUSTMENT') %}

{% set paymentFeeAdjustments = order.getAdjustmentsRecursively(paymentFeeAdjustment) %}
{% if paymentFeeAdjustments is not empty %}

				{% for paymentFeeLabel, paymentFeeAmount in sylius_aggregate_adjustments(paymentFeeAdjustments) %}

							{{ paymentFeeLabel }}

								{{ money.format(paymentFeeAmount, order.currencyCode) }}

				{% endfor %}

			{{ 'mango-sylius.ui.paymentFee_total'|trans }}:
			{{ money.format(order.getAdjustmentsTotal(paymentFeeAdjustment) ,order.currencyCode) }}

{% endif %}
```

Development
-----------

[](#development)

### Usage

[](#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

[](#testing)

After your changes you must ensure that the tests are still passing.

- Easy Coding Standard ```
    bin/ecs.sh
    ```
- PHPStan ```
    bin/phpstan.sh
    ```

License
-------

[](#license)

This library is under the MIT license.

Credits
-------

[](#credits)

Developed by [manGoweb](https://www.mangoweb.eu/).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~563 days

Total

2

Last Release

2150d ago

PHP version history (2 changes)v0.2.0PHP ^7.1

v0.3.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2500352?v=4)[Johan Hornof](/maintainers/hornofj)[@hornofj](https://github.com/hornofj)

![](https://avatars.githubusercontent.com/u/13216499?v=4)[Vašo](/maintainers/VasoOppelt)[@VasoOppelt](https://github.com/VasoOppelt)

---

Top Contributors

[![ondrej-kuhnel](https://avatars.githubusercontent.com/u/6840281?v=4)](https://github.com/ondrej-kuhnel "ondrej-kuhnel (3 commits)")[![HonzaMatosik](https://avatars.githubusercontent.com/u/13003350?v=4)](https://github.com/HonzaMatosik "HonzaMatosik (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mangoweb-sylius-sylius-payment-fee-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/mangoweb-sylius-sylius-payment-fee-plugin/health.svg)](https://phpackages.com/packages/mangoweb-sylius-sylius-payment-fee-plugin)
```

###  Alternatives

[sylius/invoicing-plugin

Invoicing plugin for Sylius.

901.0M2](/packages/sylius-invoicing-plugin)[sylius/paypal-plugin

PayPal plugin for Sylius.

451.4M4](/packages/sylius-paypal-plugin)[flux-se/sylius-payum-stripe-plugin

Payum Stripe gateways plugin for Sylius.

61342.2k](/packages/flux-se-sylius-payum-stripe-plugin)[bitbag/payu-plugin

PayU payment plugin for Sylius applications

2533.5k](/packages/bitbag-payu-plugin)[bitbag/przelewy24-plugin

Przelewy24 payment plugin for Sylius applications.

1931.7k](/packages/bitbag-przelewy24-plugin)[bitbag/sylius-adyen-plugin

BitBag Adyen plug-in for Sylius.

1249.9k](/packages/bitbag-sylius-adyen-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
