https://github.com/silvercommerce/payments-stripe-paymentintents
Add Stripe Payments (via integrated payment form and payment intents) to a SilverCommerce site
https://github.com/silvercommerce/payments-stripe-paymentintents
Last synced: 2 months ago
JSON representation
Add Stripe Payments (via integrated payment form and payment intents) to a SilverCommerce site
- Host: GitHub
- URL: https://github.com/silvercommerce/payments-stripe-paymentintents
- Owner: silvercommerce
- License: bsd-3-clause
- Created: 2021-01-28T17:47:24.000Z (over 5 years ago)
- Default Branch: 1
- Last Pushed: 2025-01-29T14:11:33.000Z (over 1 year ago)
- Last Synced: 2025-09-22T15:56:39.569Z (9 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# SilverCommerce Stripe Payment Intents
Module that adds Stripe Payments via an integrated payment form and
payment intents to a SilverCommerce site (using the omnipay stripe gateway).
## Installation
Install via composer:
composer require silvercommerce/payments-stripe-paymentintents
## Configuration
Configure how you would any SilverStripe omnipay modules:
_payments.yml_
---
Name: paymentconfig
---
SilverStripe\Omnipay\Model\Payment:
allowed_gateways:
- 'Stripe_PaymentIntents'
SilverStripe\Omnipay\GatewayInfo:
PayPal_Express:
parameters:
apikey: sk_live_xxxxxxxxx
publishableKey: pk_live_xxxxxxxxx
# Config for test environments
---
Except:
environment: 'live'
---
SilverStripe\Omnipay\GatewayInfo:
Stripe_PaymentIntents:
parameters:
apikey: sk_test_xxxxxx
publishableKey: pk_test_xxxxxx
## Payment Intents
In order to comply with SCA regulations in the EU, this module uses
the payment intents API to generate a payment intent prior to completing
a purchase.
This means that a payment will also have a payment intent ID saved
against it in the database.
The JavaScript to handle generating the payment intent is added
automatically and adds the payment intent ID to the omnipay gateway
form