payum/payum-bundle
Composer 安装命令:
composer require payum/payum-bundle
包简介
One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.
关键字:
README 文档
README
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
PayumBundle
The bundle integrate payum into symfony framework. It already supports +35 gateways. Provide nice configuration layer, secured capture controller, storages integration and lots of more features.
Sylius, an open source headless eCommerce platform, base its payment solutions on top of the bundle.
Resources
Examples
Configure:
payum: storages: Payum\Core\Model\Payment: filesystem: storage_dir: '%kernel.root_dir%/Resources/payments' id_property: number security: token_storage: Payum\Core\Model\Token: filesystem: storage_dir: '%kernel.root_dir%/Resources/gateways' id_property: hash gateways: offline: factory: offline
note if you're using Symfony 4+ then create config/packages/payum.yaml file with contents described above.
Purchase
<?php use Payum\Core\Model\Payment; use Payum\Core\Reply\HttpRedirect; use Payum\Core\Reply\HttpResponse; use Payum\Core\Request\Capture; $payment = new Payment; $payment->setNumber(uniqid()); $payment->setCurrencyCode('EUR'); $payment->setTotalAmount(123); // 1.23 EUR $payment->setDescription('A description'); $payment->setClientId('anId'); $payment->setClientEmail('foo@example.com'); $gateway = $this->get('payum')->getGateway('offline'); $gateway->execute(new Capture($payment));
Get status
<?php use Payum\Core\Request\GetHumanStatus; $gateway->execute($status = new GetHumanStatus($payment)); echo $status->getValue();
Other operations.
<?php use Payum\Core\Request\Authorize; use Payum\Core\Request\Cancel; use Payum\Core\Request\Refund; $gateway->execute(new Authorize($payment)); $gateway->execute(new Refund($payment)); $gateway->execute(new Cancel($payment));
Contributing
PayumBundle is an open source, community-driven project. Pull requests are very welcome.
Like it? Spread the word!
Star PayumBundle on GitHub or packagist.
License
The bundle is released under the MIT License.
payum/payum-bundle 适用场景与选型建议
payum/payum-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.9M 次下载、GitHub Stars 达 583, 最近一次更新时间为 2013 年 01 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「payment」 「paypal」 「stripe」 「authorize.net」 「be2bill」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 payum/payum-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 payum/payum-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 payum/payum-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.
The bundle for easy using json-rpc api on your project
A PayPal IPN (Instant Payment Notification) listener for PHP
Librería para la gestión sencilla de pagos mediante TPV Redsys y Paypal
Bundle Symfony DaplosBundle
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
统计信息
- 总下载量: 10.9M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 597
- 点击次数: 46
- 依赖项目数: 45
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-15