3brs/sylius-gopay-plugin

GoPay payment gateway plugin for Sylius applications.

Maintainers

👁 ondrej-kuhnel

Package info

github.com/3BRS/sylius-gopay

Type:sylius-plugin

pkg:composer/3brs/sylius-gopay-plugin

Statistics

Installs: 108

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

3.1.1 2026-04-20 06:19 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

Replaces

None

MIT fc347f9de95bf17ca81755c46449d67321e330c5

gopaysyliuspayment-gatewaysylius-plugin

This package is auto-updated.

Last update: 2026-06-20 13:57:57 UTC


README

👁 Image
👁 Image
👁 Image
👁 Image

Capabilities

  • Payment via Sylius standard checkout
  • Refund via Sylius admin
    • Refund button in order detail triggers call of GoPay API

Installation

Until pull request is merged, require it this way:

composer require 3brs/sylius-gopay-plugin

Add plugin dependencies to your bundles.php file:

// bundles.php
ThreeBRS\SyliusGoPayPlugin\ThreeBRSSyliusGoPayPlugin::class => ['all' => true],

Include plugin configuration

# config/_sylius.yaml
imports:
 - { resource: "@ThreeBRSSyliusGoPayPlugin/Resources/config/config.yaml" }

Usage

Add your test credentials in Sylius admin as new payment method. Complete couple of orders with different states and send email to GoPay authorities.

After the review you will get production credentials, so just change it in Sylius admin, and you are ready to go.

Add GoPay programatically

-- CHANGE the `config` JSON values to your GoPay credentials
INSERT INTO sylius_gateway_config (config, gateway_name, factory_name) VALUES ('{"isProductionMode": false, "goid": "TEST", "clientId": "TEST", "clientSecret": "TEST"}', 'gopay', 'gopay');

INSERT INTO sylius_payment_method (code, environment, is_enabled, position, created_at, updated_at, gateway_config_id)
VALUES ('gopay', NULL, 1, 0, NOW(), NOW(), (SELECT id FROM sylius_gateway_config WHERE gateway_name = 'gopay'));

INSERT INTO sylius_payment_method_translation (translatable_id, name, description, instructions, locale) VALUES ((SELECT id FROM sylius_payment_method WHERE code = 'gopay'), 'GoPay', '', null, 'en_US');

INSERT INTO sylius_payment_method_channels (payment_method_id, channel_id)
VALUES ((SELECT id FROM sylius_payment_method WHERE code = 'gopay'), (SELECT id FROM sylius_channel LIMIT 1));

Credits

Built on top of https://github.com/Prometee/gopay-plugin, which is fork of https://github.com/bratiask/gopay-plugin, which is fork of https://github.com/czende/gopay-plugin.

Thank you all for your work!