PHPackages                             coolminds/sylius-pay-by-invoice-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. coolminds/sylius-pay-by-invoice-plugin

ActiveSylius-plugin[Payment Processing](/categories/payments)

coolminds/sylius-pay-by-invoice-plugin
======================================

Sylius plugin for adding on-invoice payment fee support

v1.0.5(4mo ago)0163[2 PRs](https://github.com/Coolminds-Dev/sylius-pay-by-invoice-plugin/pulls)MITPHPPHP ^8.2CI passing

Since Oct 28Pushed 4mo agoCompare

[ Source](https://github.com/Coolminds-Dev/sylius-pay-by-invoice-plugin)[ Packagist](https://packagist.org/packages/coolminds/sylius-pay-by-invoice-plugin)[ RSS](/packages/coolminds-sylius-pay-by-invoice-plugin/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (32)Versions (9)Used By (0)

Coolminds Sylius Pay-By-Invoice Plugin
======================================

[](#coolminds-sylius-pay-by-invoice-plugin)

Adds a configurable “Pay by Invoice” flow to Sylius 2.0 (Symfony 6.4):

- Define a payment method. example "on\_invoice"
- Define a customer group example. "pay\_by\_invoice"

A proccessor wil applie a configurable percentage surcharge when your specific payment method (e.g. on\_invoice) is selected. The form type wil show/hide the payment method based on a your Customer Group during checkout.

Optionally, you can configure a second customer group that uses a fixed surcharge amount (e.g. €5) instead of a percentage.

Displays in scheckout summary. admin order, Twig hooks + one template override to display the surcharge in Checkout, Admin &gt; Order, and Invoice PDF.

Requirements
------------

[](#requirements)

PHP 8.2+

Symfony 6.4.x

Sylius 2.0.x

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

[](#installation)

```
Require the plugin
composer require "coolminds/sylius-pay-by-invoice-plugin:*@dev"

```

Enable the bundle
-----------------

[](#enable-the-bundle)

`config/bundles.php`

```
return [
    // ...
    Coolminds\PayByInvoice\CoolmindsPayByInvoicePlugin::class => ['all' => true],
];

```

Configure
---------

[](#configure)

Create `config/packages/coolminds_pay_by_invoice.yaml`

```
coolminds_pay_by_invoice:
  fee_percentage: 2.5              # float, e.g. 2.5 = 2.5%
  fixed_fee_amount: 5.0            # float, fixed amount in major currency units (e.g. 5.0 = €5.00)
  payment_code: 'on_invoice'       # Sylius PaymentMethod code that triggers the fee
  group_code: 'betalen_op_factuur' # CustomerGroup code allowed to see/use this method
  fixed_fee_group_code: 'betalen_op_factuur_vast' # CustomerGroup code that uses the fixed fee
  display_in_description: true     # append "(+X%)" to the payment label in the shop
```

Clear &amp; warm cache
----------------------

[](#clear--warm-cache)

```
php -d memory_limit=-1 bin/console cache:clear
php -d memory_limit=-1 bin/console cache:warmup

```

Translations
------------

[](#translations)

By deafault translations for NL and EN ar available.

Available keys:

```
on_invoice:
  fee_suffix: "(Note: +%fee%%)"                       # EN
  fee_suffix_fixed: "(Note: +€%amount%)"             # EN
  fee_label: "Surcharge for payment on invoice"
  fee_label_with_percent: "Surcharge for payment on invoice (%fee%%)"
  fee_label_with_amount: "Surcharge for payment on invoice (€%amount%)"
```

invoice twig template
---------------------

[](#invoice-twig-template)

Include below to your invoice twig templat. This way the fee will be visible on your invoice.

```
{% include '@CoolmindsPayByInvoice/bundles/SyliusInvoicingPlugin/shared/download/_on_invoice_fee.html.twig'
  with { invoice: invoice }
%}
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance76

Regular maintenance activity

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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 ~23 days

Recently: every ~29 days

Total

6

Last Release

131d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/210497560?v=4)[PieterCoolmind](/maintainers/PieterCoolmind)[@PieterCoolmind](https://github.com/PieterCoolmind)

---

Top Contributors

[![PieterCoolmind](https://avatars.githubusercontent.com/u/210497560?v=4)](https://github.com/PieterCoolmind "PieterCoolmind (13 commits)")[![Sybrig](https://avatars.githubusercontent.com/u/132911275?v=4)](https://github.com/Sybrig "Sybrig (3 commits)")

---

Tags

composer-packagesyliussyliussylius-plugintest-appication

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/coolminds-sylius-pay-by-invoice-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/coolminds-sylius-pay-by-invoice-plugin/health.svg)](https://phpackages.com/packages/coolminds-sylius-pay-by-invoice-plugin)
```

###  Alternatives

[sylius/invoicing-plugin

Invoicing plugin for Sylius.

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

PayPal plugin for Sylius.

461.5M7](/packages/sylius-paypal-plugin)[flux-se/sylius-payum-stripe-plugin

Payum Stripe gateways plugin for Sylius.

61353.4k](/packages/flux-se-sylius-payum-stripe-plugin)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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