monext/sylius-plugin
Composer 安装命令:
composer require monext/sylius-plugin
包简介
Sylius plugin for Monext payment gateway
README 文档
README
Monext Sylius Plugin
Table of Content
- Overview
- Features
- Installation
- Configuration
- Additional resources for developers
- License
- Contact and support
Overview
This plugin allows you to use the Monext payment system with a Sylius ecommerce application.
Features
This plugin integrate with native Sylius orders' workflow and provides the following features:
- Do offsite payment on a payment page hosted by Monext.
- Do in-shop payment through Monext-hosted iframe.
- Choose between immediate capture or only triggered by a specific order state (like capture at shipping).
- Cancel payments (not partials).
- Refund payments (not partials).
Note: This plugin does not use features from Sylius Plus.
Supported payment methods
This plugin supports the following payment methods:
- CB
- Visa
- Mastercard
- American Express
- ApplePay
- GooglePay
- Paypal
- Bancontact
- iDEAL
- Klarna
- Multibanco
- MB Way
You can also check our documentation for more information about other supported payment methods.
Installation
Requirements
| Package | Version |
|---|---|
| PHP | ^8.3 |
| ext-json: | * |
| sylius/resource-bundle | ^1.10 |
| sylius/sylius | ^1.12 |
| symfony/messenger | ^5.4 or ^6.4 |
Important note: This plugin makes heavy use of the details field in the sylius_payment entity. Make sure you don't use this field or please contact us to see how we can work around this.
Installation process
- Simply add the plugin to your project:
composer require monext/monext-sylius
- Add plugin dependencies to your
config/bundles.phpfile by adding this line to the end of the array (if it does not already exist) :
MonextSyliusPlugin\MonextSyliusPlugin::class => ['all' => true]
- Then add this line to
templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig:
@@ -14,5 +14,8 @@ {% if method.gatewayConfig.factoryName == 'sylius.pay_pal' %} {{ render(controller('Sylius\\PayPalPlugin\\Controller\\PayPalButtonsController::renderPaymentPageButtonsAction', {'orderId': order.id})) }} {% endif %} + {% if method.gatewayConfig.factoryName == 'monext' %} + {{ render(controller('MonextSyliusPlugin\\Controller\\Shop\\MonextController::renderPaymentMethodAction', {'orderId': order.id})) }} + {% endif %} </div> </div>
- Finally, in
config/packages/_sylius.yamladd this to theimportssection:
- { resource: "@MonextSyliusPlugin/Resources/config/config.yaml" }
- Clear cache and run migrations:
bin/console cache:clear bin/console doctrine:migration:migrate
- Log into the Sylius admin area, then click on the left menu item "CONFIGURATION > Payment methods". There you can add a new payment method of type "Monext".
Configuration
Here are the main configuration fields for the payment method:
- API KEY:
- Base64-encoded API credentials.
- Point of sale:
- Recommended to use one per Sylius channel. It's the Monext's point of sale linked to the payments processed by this method.
- Environment:
- Sandbox for debug and test purpose.
- Production for real payment.
- You need to carry out 'pilot' transactions to validate that they are working properly in production.
- Payment form integration type:
- Redirection (offsite).
- In-shop.
- Contract numbers (optional):
- Comma-separated list of your enabled Monext payment contracts that should be used.
- If no value is provided, all contracts are displayed, unless a SmartDisplay rule is defined in the Monext Online BO.
- Capture type:
- Automatic: Authorization + Capture are immediately done.
- Manual: Only Authorization is immediate, Capture should be either done manually or will be triggered by a specific transition in shipping states.
- Transition for manual capture:
- Comma-separated list of transitions in the Winzou state manager used for triggering a manual capture.
Additional resources for developers
To learn more about how the API used by the plugin and how to modify or use Sylius with it to fit your needs:
- Sylius Plugin Monext documentation
- Monext API documentation
- Sylius 1.12 Documentation
- Sylius Online Course
License
This plugin's source code is completely free and released under the terms of the MIT license.
Contact and support
If you want to contact us, the best way is through this page on our website and send us your question(s).
We guarantee that we answer as soon as we can!
If you need support you can also directly check our FAQ section and contact us on the support page.
monext/sylius-plugin 适用场景与选型建议
monext/sylius-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「checkout」 「sylius」 「sylius-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 monext/sylius-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 monext/sylius-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 monext/sylius-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Implementation of the Omnibus Directive for Sylius application.
Bulk export of sylius resources
Sylius plugin that integrates Addwish
Setono example plugin for Sylius.
Will translate fragments of text automatically
Use price tiers in your Sylius store.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-01-16

