Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/externals/stripe-php/lib/Stripe/Stripe.php
12256 views
1
<?php
2
3
abstract class Stripe
4
{
5
/**
6
* @var string The Stripe API key to be used for requests.
7
*/
8
public static $apiKey;
9
/**
10
* @var string The base URL for the Stripe API.
11
*/
12
public static $apiBase = 'https://api.stripe.com';
13
/**
14
* @var string|null The version of the Stripe API to use for requests.
15
*/
16
public static $apiVersion = null;
17
/**
18
* @var boolean Defaults to true.
19
*/
20
public static $verifySslCerts = true;
21
const VERSION = '1.16.0';
22
23
/**
24
* @return string The API key used for requests.
25
*/
26
public static function getApiKey()
27
{
28
return self::$apiKey;
29
}
30
31
/**
32
* Sets the API key to be used for requests.
33
*
34
* @param string $apiKey
35
*/
36
public static function setApiKey($apiKey)
37
{
38
self::$apiKey = $apiKey;
39
}
40
41
/**
42
* @return string The API version used for requests. null if we're using the
43
* latest version.
44
*/
45
public static function getApiVersion()
46
{
47
return self::$apiVersion;
48
}
49
50
/**
51
* @param string $apiVersion The API version to use for requests.
52
*/
53
public static function setApiVersion($apiVersion)
54
{
55
self::$apiVersion = $apiVersion;
56
}
57
58
/**
59
* @return boolean
60
*/
61
public static function getVerifySslCerts()
62
{
63
return self::$verifySslCerts;
64
}
65
66
/**
67
* @param boolean $verify
68
*/
69
public static function setVerifySslCerts($verify)
70
{
71
self::$verifySslCerts = $verify;
72
}
73
}
74
75