承接 3brs/sylius-gopay-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

3brs/sylius-gopay-plugin

最新稳定版本:3.0.0

Composer 安装命令:

composer require 3brs/sylius-gopay-plugin

包简介

GoPay payment gateway plugin for Sylius applications.

README 文档

README

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!

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-06