PHPackages                             gtgt/sylius-barion-payment-gateway - 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. gtgt/sylius-barion-payment-gateway

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

gtgt/sylius-barion-payment-gateway
==================================

Sylius Barion payment gateway plugin.

00PHP

Since Jul 7Pushed 1mo agoCompare

[ Source](https://github.com/gtgt/sylius-barion-payment-gateway)[ Packagist](https://packagist.org/packages/gtgt/sylius-barion-payment-gateway)[ RSS](/packages/gtgt-sylius-barion-payment-gateway/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sylius Barion Payment Gateway Plugin
====================================

[](#sylius-barion-payment-gateway-plugin)

Sylius 2.x payment gateway for [Barion](https://www.barion.com) using `barion/barion-web-php` 2.x.

Features
--------

[](#features)

- Sylius 2 Payum actions (`Capture`, `Status`, `Notify`, `Refund`, `Cancel`)
- Barion API v2 prepare + PaymentState v4 polling
- 3DS address enrichment from Sylius order addresses
- Configurable funding sources and payment types (immediate, delayed capture, reservation)
- Optional recurring payment initiation
- Sylius 2 PaymentRequest notify provider (`/payment-methods/{code}`)
- Admin Barion transaction history (shop payments grid + wallet ledger)

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

[](#installation)

### 1. Require the package

[](#1-require-the-package)

Add the VCS repository (until the package is on Packagist) and install:

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/gtgt/sylius-barion-payment-gateway.git"
        }
    ]
}
```

```
composer require gtgt/sylius-barion-payment-gateway
```

### 2. Symfony Flex recipe (routes and bundle)

[](#2-symfony-flex-recipe-routes-and-bundle)

The plugin ships a Flex recipe that:

- registers `SyliusBarionPaymentGatewayPlugin` in `config/bundles.php`
- copies `config/routes/sylius_barion.yaml` into the application

**Official recipe (recommended once merged):** after the recipe is accepted into [symfony/recipes-contrib](https://github.com/symfony/recipes-contrib), Flex applies it automatically on `composer require` with no extra steps.

**Until the contrib recipe is merged**, point Flex at the plugin `flex-recipe` branch by adding this to your **application** `composer.json` (merge into existing `extra.symfony` if present):

```
{
    "extra": {
        "symfony": {
            "endpoint": [
                "https://raw.githubusercontent.com/gtgt/sylius-barion-payment-gateway/flex-recipe/index.json",
                "flex://defaults"
            ]
        }
    }
}
```

Then reinstall the package so Flex can apply the recipe:

```
composer recipes:install gtgt/sylius-barion-payment-gateway --force
```

Or:

```
composer update gtgt/sylius-barion-payment-gateway
```

### 3. Manual fallback (without Flex)

[](#3-manual-fallback-without-flex)

If you cannot use Flex recipes, copy the route import file manually:

```
cp vendor/gtgt/sylius-barion-payment-gateway/config/install/routes/sylius_barion.yaml config/routes/sylius_barion.yaml
```

Ensure the bundle is enabled in `config/bundles.php`:

```
SyliusBarionPaymentGateway\SyliusBarionPaymentGatewayPlugin::class => ['all' => true],
```

### 4. Configure a Barion payment method

[](#4-configure-a-barion-payment-method)

In the Sylius admin, create a payment method using the **Barion** gateway and fill in your POS key and environment.

Flex recipe maintenance
-----------------------

[](#flex-recipe-maintenance)

PathPurpose`gtgt/sylius-barion-payment-gateway/2.0/manifest.json`Source recipe (submit to `symfony/recipes-contrib`)`config/install/routes/sylius_barion.yaml`Route file copied into consuming apps`flex-recipe/`Compiled Flex endpoint files for the `flex-recipe` git branchTo refresh compiled Flex files after changing the manifest:

```
git ls-tree HEAD gtgt/sylius-barion-payment-gateway/2.0 \
  | php /path/to/recipes-checker/run generate:flex-endpoint \
      gtgt/sylius-barion-payment-gateway main flex-recipe flex-recipe/compiled
cp flex-recipe/compiled/index.json flex-recipe/index.json
cp flex-recipe/compiled/gtgt.sylius-barion-payment-gateway.2.0.json flex-recipe/
```

Publish the contents of `flex-recipe/` to the `flex-recipe` branch of the plugin repository.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance60

Regular maintenance activity

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![goncziakos](https://avatars.githubusercontent.com/u/32277563?v=4)](https://github.com/goncziakos "goncziakos (11 commits)")[![gtgt](https://avatars.githubusercontent.com/u/788449?v=4)](https://github.com/gtgt "gtgt (1 commits)")

### Embed Badge

![Health badge](/badges/gtgt-sylius-barion-payment-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/gtgt-sylius-barion-payment-gateway/health.svg)](https://phpackages.com/packages/gtgt-sylius-barion-payment-gateway)
```

###  Alternatives

[pagseguro/php

Biblioteca de integração com o PagSeguro

23260.3k6](/packages/pagseguro-php)

PHPackages © 2026

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