webbuilders-group / silverstripe-stripe-gateway
Stripe支付服务的支付网关
dev-master
2016-06-22 12:33 UTC
Requires
- composer/installers: *
- silverstripe/framework: ~3.1
- silverstripe/payment: 1.0.*
- stripe/stripe-php: 1.*
This package is auto-updated.
Last update: 2024-08-29 02:22:15 UTC
README
SilverStripe支付模块的Stripe支付网关
维护者联系方式
- Ed Chipman (UndefinedOffset)
要求
- SilverStripe框架3.1+
- SilverStripe支付1.0.x
安装
- 从以下链接下载模块 https://github.com/webbuilders-group/silverstripe-stripe-gateway/archive/master.zip
- 将下载的存档解压到您的站点根目录,使得目标文件夹名为stipe-gateway,解压后的文件夹中应包含_root中的_config.php以及其他文件/文件夹
- 运行dev/build?flush=all以重新生成清单
如果您愿意,也可以使用composer安装
composer require webbuilders-group/silverstripe-stripe-gateway
用法
要使用Stripe作为支付网关,您需要从您的账户设置中检索您的API密钥,然后在您的网站的config.yml中需要添加以下内容
PaymentProcessor: supported_methods: dev: - 'StripePaymentGateway' live: - 'StripePaymentGateway' StripeGateway: test_api_secret: "YOUR TEST SECRET KEY" api_secret: "YOUR LIVE SECRET KEY"