robbinc91/botble-redsys
Composer 安装命令:
composer require robbinc91/botble-redsys
包简介
Redsys Payment Gateway for Botble CMS
README 文档
README
Redsys (Servired / Sermepa) payment gateway integration for Botble CMS.
Package metadata
| Field | Value |
|---|---|
| Composer package | robbinc91/botble-redsys |
| Homepage / source | github.com/robbinc91/botble-redsys |
Plugin ID (plugin.json) |
robbinc91/botble-redsys |
| PHP namespace | Botble\Redsys\ |
| Author | Robin Cabeza Ruiz |
| License | MIT |
Features
- Redsys as a checkout payment method (with Botble
paymentplugin). - Redsys settings under Admin → Payments.
- Signed notification handling and optional OK-return verification.
- Successful payments fire Botble’s
PAYMENT_ACTION_PAYMENT_PROCESSEDhook. - Idempotent processing to reduce duplicate payment rows.
Requirements
- PHP
>= 8.2.11(seecomposer.json). - Botble with
botble/paymentplugin installed and active. - HTTPS on production for callback URLs.
- Redsys notification URL must be reachable from Redsys servers.
Dependencies
botble/payment— required Botble plugin (plugin.json).ssheduardo/redsys-laravel~1.5.0— Redsys Laravel SDK (composer.json).
Composer vs vendor/robbinc91
If you only copy this plugin into platform/plugins/redsys and run composer update at the project root, Composer installs merged dependencies (e.g. ssheduardo/redsys-laravel) into vendor/. It does not necessarily create vendor/robbinc91/botble-redsys unless the root app composer requires robbinc91/botble-redsys. That layout is normal for Botble plugins deployed as files under platform/plugins/.
Option A (merge-plugin): SDK is declared in this plugin’s composer.json and resolved into the app’s root vendor/ after composer update.
Installation
Method A — Copy into Botble (most common)
-
Put the plugin folder here (folder name
redsys):platform/plugins/redsys -
From the project root:
composer update
-
Activate using the directory name under
platform/plugins(hereredsys). Botble’s CLI strips anyvendor/prefix but still resolves the folder —cms:plugin:activate botble-redsyswould not match if your folder isredsys.php artisan cms:plugin:activate redsys
Or use Admin → Plugins.
Method B — Install as Composer package (optional)
If the package is on Packagist or a VCS repository configured in the root composer.json:
composer require robbinc91/botble-redsys:^1.0
You still need the plugin discovered by Botble under platform/plugins/redsys (copy, symlink, or your deployment strategy). Botble scans direct children of platform/plugins, not arbitrary nested vendor paths.
Configuration
Admin → Payments — enable Redsys and set:
- Merchant code (FUC)
- Terminal
- SHA-256 secret key
- Environment:
testorlive - Trade name
HTTP routes
| Method | Path | Name |
|---|---|---|
| GET | /payment/redsys/checkout |
payments.redsys.checkout |
| POST | /payment/redsys/notification |
payments.redsys.notification |
| GET | /payment/redsys/ok |
payments.redsys.ok |
| GET | /payment/redsys/ko |
payments.redsys.ko |
Configure Redsys backoffice (example):
- Notification:
https://your-domain.com/payment/redsys/notification - OK:
https://your-domain.com/payment/redsys/ok - KO:
https://your-domain.com/payment/redsys/ko
CSRF
Exclude the notification route from CSRF verification (Redsys server POST has no Laravel token):
- Path prefix / URI:
payment/redsys/notification
(Typically in app/Http/Middleware/VerifyCsrfToken.php $except.)
Integration behaviour
- Notification (
POST …/notification) is the primary authoritative confirmation. - OK return can assist when session/callback ordering differs; signatures are verified when Redsys sends parameters.
- Hotel/booking flows that listen for
PAYMENT_ACTION_PAYMENT_PROCESSEDbehave like other gateways (e.g. Stripe) once this hook runs.
Verify installation
php artisan route:list --name=payments.redsys
Expect four routes named payments.redsys.*.
Then: test mode checkout → confirm notification → confirm payment and order/booking linkage → switch to live credentials.
Translations
Language files live under resources/lang/{locale}/redsys.php (e.g. en, es).
robbinc91/botble-redsys 适用场景与选型建议
robbinc91/botble-redsys 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「redsys」 「payment-gateway」 「botble」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 robbinc91/botble-redsys 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 robbinc91/botble-redsys 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 robbinc91/botble-redsys 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel assets management
Check coding standard & code syntax with Git pre-commit hook.
Dev tool commands for Botble CMS
API package for Botble CMS
Redsys gateway
Client SDK for CyberSource REST APIs
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-08