webburza/payum-setefi
Composer 安装命令:
composer create-project webburza/payum-setefi
包简介
Setefi Payum gateway
README 文档
README
A Payum gateway for Setefi payment processor.
Note: all user IDs, passwords and secrets listed are documented by Setefi (section "TEST ENVIRONMENT CREDENTIALS") and shared with all other Setefi sandbox users, they're NOT a secret.
Sylius Integration
# app/config/config.yml parameters: # NOTE: # these are documented by Setefi and shared among all sandbox users, they're NOT a secret setefi.id: "99999999" setefi.password: "99999999" setefi.sandbox: true # false in config_prod.yml payum: gateways: setefi: factory: "setefi" payum.http_client: "@sylius.payum.http_client" terminal_id: "%setefi.id%" terminal_password: "%setefi.password%" sandbox: "%setefi.sandbox%" sylius_payment: gateways: setefi: Setefi
After having done this, enable the payment method in the Sylius admin interface.
(Note: Any testing of the integration must be done on a public-accessible URL (ie. by using ngrok) because Setefi backend needs to be able to do valid server-to-server requests for the process to complete successfully.)
Setefi sandbox environment
Log in to Setefi's sandbox environment:
(Note: these are documented by Setefi and shared among all sandbox users, they're NOT a secret)
- Codice Commerciante:
009999999 - Codice Utente:
009999999 - Password:
Setefi14
Note that your transactions will be among all other sandbox's users' transactions, you need to find your own to verify it works.
Technical implementation
- Entrypoint is
Webburza\Payum\Setefi\SetefiGatewayFactorywhich registers all known actions, sets up config and creates a newApi. Webburza\Payum\Setefi\Apiis a collection of helpers and constants specific to this provider, it gets injected to all actions implementingPayum\Core\ApiAwareInterface.- Every action has a specific task and they declare on which part of the process they work on by implementing
support($request)fromPayum\Core\Action\ActionInterface. The action name itself does not matter.
For example,Webburza\Payum\Setefi\Action\CancelActiondeclares it can handlePayum\Core\Request\Cancelrequest and it will receive all those types of requests to handle.
Action and the request are two different things, you can (and do) have much more actions than you do request types (some gateways have no custom request types). - We can also define some custom request types such as
Webburza\Payum\Setefi\Request\CreateTransactionfor situations where domain-specific events need to happen. After having defined them, we register actions to handle them the same way we do native actions.
Transaction sequence
Webburza\Payum\Setefi\Action\StatusActionmarks the payment request asnewWebburza\Payum\Setefi\Action\CaptureActiontriggersWebburza\Payum\Setefi\Request\CreateTransactionrequest- a new Setefi transaction is created using
Webburza\Payum\Setefi\Action\CreateTransactionActionand a server-to-server (S2S) request - if successful, the user is redirected to Setefi web interface
-
- if payment successful, Setefi does a S2S request and
Webburza\Payum\Setefi\Action\StatusActionmarks the payment request ascaptured - if payment not successful, Setefi does a S2S request and
Webburza\Payum\Setefi\Action\StatusActionmarks the payment request ascanceled
- if payment successful, Setefi does a S2S request and
- response to 5. is a valid redirect URL for Setefi to redirect to user back to
- process complete
webburza/payum-setefi 适用场景与选型建议
webburza/payum-setefi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.29k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 12 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「payum」 「setefi」 「monetaonline」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webburza/payum-setefi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webburza/payum-setefi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webburza/payum-setefi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Payum integration for Symfony e-commerce applications.
Quickpay payment plugin for Sylius
Saferpay Payum plugin providing Ecommerce and Business features
Rich payment solutions for zend framework2. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
The Payum extension. 綠界金流
Payum extension for integrating Checkout.com payments
统计信息
- 总下载量: 7.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-23