Silverstripe Checkout Stripe
Adds Stripe payment option to the checkout module., (*1)
Dependancies
Installation
Either install via composer:, (*2)
i-lateral/silverstripe-checkout-stripe: *
Or download and install to the "checkout-stripe" directory in your
project root., (*3)
Setup
Once installed you will need to add your API Keys (found in Stripe under
"Account Settings")., (*4)
Add all four these via Silverstripe config:, (*5)
YML
StripePayment:
test_secret_key: test_xyz
test_publish_key: test_xyz
live_secret_key: live_xyz
live_publish_key: live_xyz
PHP
StripePayment::config()->test_secret_key = "test_xyz";
StripePayment::config()->test_publish_key = "test_xyz";
StripePayment::config()->live_secret_key = "live_xyz";
StripePayment::config()->live_publish_key = "live_xyz";
Now enable the stripe payment by logging into the CMS then visiting
global site settings., (*6)
Now click the "Checkout" tab and under payment methods click "Add"., (*7)
Now then select "Stripe" from the dropdown., (*8)