markguinn/silvershop-stripe
Composer 安装命令:
composer require markguinn/silvershop-stripe
包简介
Stripe.js payment integration for SilverShop e-commerce
README 文档
README
Stripe uses a little different payment flow than other processors in that you have to do some clientside javascript work to set it up and you get a token back instead of credit card processing fields.
This module uses Omnipay's Stripe adapter but overrides SilverShop's default checkout component to inject the right JavaScript.
Installation
composer require markguinn/silvershop-stripe
Then create a file at mysite/_config/payment.yml that looks something like the following:
---
Name: payment
---
Payment:
allowed_gateways:
- 'Stripe'
GatewayInfo:
Stripe:
parameters:
apiKey: SECRET-KEY-FOR-YOUR-TEST-ACCOUNT
publishableKey: PUBLISHABLE-KEY-FOR-TEST-ACCOUNT
---
Except:
environment: 'live'
---
GatewayInfo:
Stripe:
parameters:
testMode: true
---
Only:
environment: 'live'
---
GatewayInfo:
Stripe:
parameters:
apiKey: SECRET-KEY-FOR-YOUR-LIVE-ACCOUNT
publishableKey: PUBLISHABLE-KEY-FOR-LIVE-ACCOUNT
License
Copyright 2016 Mark Guinn, All rights reserved.
See LICENSE file. (MIT)
统计信息
- 总下载量: 1.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-15