ilateral\SilverStripe\StripeForms\StripeForms
Config class to store common settings and functions for this module
Synopsis
class StripeForms
extends ViewableData
{
- // members
- private static $test_publish_key;
- private static $live_publish_key;
- private static $test_secret_key;
- private static $live_secret_key;
- private static Boolean $use_custom_js = false;
- private static Boolean $cancel_subscriptions_on_setup = true;
- private static Boolean $clear_subscriptions_on_setup = false;
- private static String $send_emails_as;
- // methods
- public static string publish_key()
- public static string secret_key()
Hierarchy
Extends
- ViewableData
Members
private
- $cancel_subscriptions_on_setup
—
ilateral\SilverStripe\StripeForms\Boolean
When a new subscription is made, should we cancel all existing subscriptions? - $clear_subscriptions_on_setup
—
ilateral\SilverStripe\StripeForms\Boolean
When a new subscription is made, should we delete all existing subscriptions? - $live_publish_key
—
string
Publish key for the live account - $live_secret_key
—
string
Publish key for the live account - $send_emails_as
—
ilateral\SilverStripe\StripeForms\String
Send notification emails as this address. If not set, the default admin email will be used. - $test_publish_key
—
string
Publish key for the test account - $test_secret_key
—
string
Publish key for the test account - $use_custom_js
—
ilateral\SilverStripe\StripeForms\Boolean
Config variable to specify if we want to use custom JS.
Methods
public
- publish_key() — Either get the publish key from config check if a global constant has been set
- secret_key() — Either get the publish key from config check if a global constant has been set