silverstripe/payment
最新稳定版本:0.4.2
Composer 安装命令:
composer require silverstripe/payment
包简介
SilverStripe payment provider integration. Currently supported: DPS, Eway, Paypal, Paystation, Worldpay
README 文档
README
Payment Module
Important: The module is being restructured for SilverStripe 3 support, see "Roadmap" below
Overview
Generic API for various payment gateways. Records payments and their status in the database.
Supported Gateways and Payment Methods
- Payment Express (Merchant hosted) - Supports Auth, Complete, Purchase, Refund, Validate
- Payment Express (DPS hosted) - Supports Auth, Purchase
- Eway
- PayPal
- PayStation
- Worldpay
- Cheque Payment (manual processing)
Configuration
A project using this module needs to set its PDS account in project _config.php file,
- If using DPS-hosted payment gateway (pxpost), set PXPost account: DPSAdapter::set_pxpost_account($your_pxpost_username, $your_pxpost_password);
- If using Merchant-hosted payment geteway (pxpay), set PXPay account: DPSAdapter::set_pxpay_account($your_pxpay_userid, $your_pxpay_key);
- If using both gateways, you need to set both above. This is very likely when using DPS-hosted to Auth a Credit Card and using Merchant-hosted to recursively pay.
This module is a stand-alone module, it is only dependent on SilverStripe core. We have re-factored DPSPayment and make DPSPayment and previous DPSHostedPayment into one payment object, the only difference between the two is they call different functions when making a transaction.
One of its common applications is to be used in E-commerce module. But in general, it should be hook-up with any data object as long as this data object is payable, such as a downloadable mp3, a E-book, booking a ticket on-line, donation, etc. DPSPayment has been re-implemented in this way, though we need to check all other payment methods in future releases.
Roadmap
The module was heavily worked on during GSOC 2012 (project page), which resulted in a number of forks, which we'll merge back once they're in a good state.
- https://github.com/frankmullenger/silverstripe-payment
- https://github.com/frankmullenger/silverstripe-payment-paypal
- https://github.com/frankmullenger/silverstripe-payment-paymentexpress
- https://github.com/frankmullenger/silverstripe-payment-cheque
- https://github.com/frankmullenger/silverstripe-payment-paystation
- https://github.com/frankmullenger/silverstripe-payment-securepaytech
- https://github.com/frankmullenger/silverstripe-gsoc-payment-test
Troubleshooting
Curl and CA Certificates on Windows
Some gateways (like DPSPayment) use PHP's curl in order to submit data,
usually through a secure SSL connection. In some cases, the CA certificates
aren't accepted. On Windows, PHP's curl doesn't come with any root CAs installed.
You'll need to add them manually. The easiest way is a global installation
through changing php.ini:
- Download http://curl.haxx.se/ca/cacert.pem
- Move into a common directory, e.g.
c:\php - Configure the setting in your
php.ini:curl.cainfo=c:\php\cacert.pem
silverstripe/payment 适用场景与选型建议
silverstripe/payment 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.58k 次下载、GitHub Stars 达 24, 最近一次更新时间为 2013 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ecommerce」 「payment」 「paypal」 「eway」 「silverstripe」 「worldpay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silverstripe/payment 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silverstripe/payment 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silverstripe/payment 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.
Nevogate Payment Gateway SDK
Dealing with payments through the Egyptian payment gateway PayMob
A PayPal IPN (Instant Payment Notification) listener for PHP
Librería para la gestión sencilla de pagos mediante TPV Redsys y Paypal
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
统计信息
- 总下载量: 11.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 23
- 依赖项目数: 15
- 推荐数: 3
其他信息
- 授权协议: Unknown
- 更新时间: 2013-01-03