PHPackages                             3brs/sylius-gpwebpay-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. 3brs/sylius-gpwebpay-plugin

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

3brs/sylius-gpwebpay-plugin
===========================

GPWebpay payment gateway plugin for Sylius

v2.4.0(7mo ago)097[1 PRs](https://github.com/3BRS/sylius-gpwebpay-plugin/pulls)MITPHPPHP ^8.2

Since Jun 29Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/3BRS/sylius-gpwebpay-plugin)[ Packagist](https://packagist.org/packages/3brs/sylius-gpwebpay-plugin)[ RSS](/packages/3brs-sylius-gpwebpay-plugin/feed)WikiDiscussions main Synced 1mo ago

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

 GP webpay Payment Gateway Plugin
==================================

[](#----gp-webpay-payment-gateway-plugin)

Features
--------

[](#features)

- Card payments as supported by [GP webpay](https://www.gpwebpay.cz/en/home/)
- Fully integrated as [Sylius](https://sylius.com/) payment method
- Using more different gateways at once or per channel

 [![](https://raw.githubusercontent.com/3BRS/sylius-gpwebpay-plugin/main/doc/admin-11.png)](https://raw.githubusercontent.com/3BRS/sylius-gpwebpay-plugin/main/doc/admin-11.png)

 [![](https://raw.githubusercontent.com/3BRS/sylius-gpwebpay-plugin/main/doc/admin-2.png)](https://raw.githubusercontent.com/3BRS/sylius-gpwebpay-plugin/main/doc/admin-2.png)

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

[](#installation)

1. Run `$ composer require 3brs/sylius-gpwebpay-plugin`.
2. Add plugin classes to your `config/bundles.php`:

    ```
    return [
       ...
       ThreeBRS\SyliusGPWebpayPaymentGatewayPlugin\ThreeBRSSyliusGPWebpayPaymentGatewayPlugin::class => ['all' => true],
    ];
    ```
3. Load plugin configuration by `config/packages/threebrs_sylius_gpwebpay_payment_gateway_plugin.yaml`:

    ```
    imports:
     - { resource: "@ThreeBRSSyliusGPWebpayPaymentGatewayPlugin/Resources/config/config.yaml" }
    ```
4. Generate keys to keep gateway credentials safe:

    ```
    bin/console sylius:payment:generate-key
    ```

Usage
-----

[](#usage)

- **Create GP webpay payment type**
    in Sylius admin panel, *Configuration -&gt; Payment methods*

Sylius 2 pay workflow
---------------------

[](#sylius-2-pay-workflow)

- Customer hit *Pay* button
- Request goes to `\Sylius\Bundle\CoreBundle\OrderPay\Controller\OrderPayController::payAction`
- That will emit redirect 302 by `\Sylius\Bundle\CoreBundle\OrderPay\Provider\PaymentRequestPayResponseProvider::getResponse` to route like `/en_US/payment-request/pay/0197204a-8284-7301-9b30-e151c7d14ec5`
- That request goes to `\Sylius\Bundle\CoreBundle\OrderPay\Action\PaymentRequestPayAction::__invoke`
    - that will dispatch command to process the payment in `\Sylius\Bundle\PaymentBundle\Processor\HttpResponseProcessor::process`
    - that will find command provider fitting the payment method in `\Sylius\Bundle\PaymentBundle\CommandProvider\AbstractServiceCommandProvider::provide`, in our case `\ThreeBRS\SyliusGPWebpayPaymentGatewayPlugin\CommandProvider\CapturePaymentRequestCommandProvider`
    - the provider will give command `\ThreeBRS\SyliusGPWebpayPaymentGatewayPlugin\Command\CapturePaymentRequest`
    - that will be handled by `\ThreeBRS\SyliusGPWebpayPaymentGatewayPlugin\CommandHandler\CapturePaymentRequestHandler`
        - ⚠️ if messenger is configured as async, the payment will not be processed immediately and customer will end on Pay page again ⚠️
        - that command handler may resolve the payment, but in our case it will just prepare payload for the payment gateway webpage
    - then the "capture" response is processed by `\ThreeBRS\SyliusGPWebpayPaymentGatewayPlugin\ResponseProvider\CaptureHttpResponseProvider` which in our case will return a redirect to the payment gateway webpage

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

[](#development)

### Usage

[](#usage-1)

- Develop your plugin in `/src`
- See `bin/` for useful commands

### Testing

[](#testing)

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

```
make ci
```

License
-------

[](#license)

This library is under the MIT license.

Credits
-------

[](#credits)

Developed by [3BRS](https://3brs.com)
Forked from [manGoweb](https://github.com/mangoweb-sylius/SyliusPaymentRestrictionsPlugin).

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance85

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 74.1% 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 ~317 days

Recently: every ~77 days

Total

7

Last Release

235d ago

Major Versions

v1.0.0 → v2.0.02024-07-24

PHP version history (3 changes)v1.0.0PHP ^7.1

v2.0.0PHP ^8.1

v2.3.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![jaroslavtyc](https://avatars.githubusercontent.com/u/2290225?v=4)](https://github.com/jaroslavtyc "jaroslavtyc (20 commits)")[![ondrej-kuhnel](https://avatars.githubusercontent.com/u/6840281?v=4)](https://github.com/ondrej-kuhnel "ondrej-kuhnel (4 commits)")[![radekbernatek](https://avatars.githubusercontent.com/u/3998427?v=4)](https://github.com/radekbernatek "radekbernatek (3 commits)")

---

Tags

pluginsyliuspaymentgatewaysylius-plugingpwebpay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/3brs-sylius-gpwebpay-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/3brs-sylius-gpwebpay-plugin/health.svg)](https://phpackages.com/packages/3brs-sylius-gpwebpay-plugin)
```

###  Alternatives

[flux-se/sylius-payum-stripe-plugin

Payum Stripe gateways plugin for Sylius.

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

Sylius Stripe plugin using Payment Request

1029.3k](/packages/flux-se-sylius-stripe-plugin)

PHPackages © 2026

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