jinjie / stripe-product-checkout
There is no license information available for the latest version (dev-master) of this package.
A very simple stripe checkout for SilverStripe
Package info
github.com/jinjie/stripe-product-checkout
Type:silverstripe-vendormodule
pkg:composer/jinjie/stripe-product-checkout
dev-master
2020-03-15 05:07 UTC
Requires
- bummzack/sortablefile: ^2.0
- silverstripe/cms: ^4
- silverstripe/framework: ^4
- silverstripe/lumberjack: ^2.0
- stripe/stripe-php: ^7.27
This package is auto-updated.
Last update: 2026-02-15 18:55:48 UTC
README
This does not intend to be a full e-commerce solution.
Installation
composer require jinjie/stripe-product-checkout
Configuration
Add Stripe keys to .env file
STRIPE_PK="<PUBLISHABLE KEY>"
STRIPE_SK="<SECRET KEY>"
Extending
By default, only the product will be used in line_items in checkout. You can change this with something like below.
StripeProductCheckout\Controllers\ProductController:
extensions:
- MyProductExtension
// ...
public function updateCheckoutItems(&$items)
{
// Manipulate $items array here to be used in line_items
}
// ...