markguinn / silvershop-stripe
Stripe.js payment integration for SilverShop e-commerce
Installs: 1 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Type:silverstripe-module
Requires
- omnipay/stripe: ^2.4
- silvershop/core: ^2.0
- silverstripe/framework: ^3.1
- silverstripe/silverstripe-omnipay: ^2.0
This package is not auto-updated.
Last update: 2024-10-21 16:07:52 UTC
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)