Stripe_1.php
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
namespace Stripe;
class Stripe
{
// @var string The Stripe API key to be used for requests.
public static $apiKey;
// @var string The base URL for the Stripe API.
public static $apiBase = 'https://api.stripe.com';
// @var string The base URL for the Stripe API uploads endpoint.
public static $apiUploadBase = 'https://uploads.stripe.com';
// @var string|null The version of the Stripe API to use for requests.
public static $apiVersion = null;
// @var string|null The account ID for connected accounts requests.
public static $accountId = null;
// @var boolean Defaults to true.
public static $verifySslCerts = true;
const VERSION = '3.14.2';
/**
* @return string The API key used for requests.
*/
public static function getApiKey()
{
return self::$apiKey;
}
/**
* Sets the API key to be used for requests.
*
* @param string $apiKey
*/
public static function setApiKey($apiKey)
{
self::$apiKey = $apiKey;
}
/**
* @return string The API version used for requests. null if we're using the
* latest version.
*/
public static function getApiVersion()
{
return self::$apiVersion;
}
/**
* @param string $apiVersion The API version to use for requests.
*/
public static function setApiVersion($apiVersion)
{
self::$apiVersion = $apiVersion;
}
/**
* @return boolean
*/
public static function getVerifySslCerts()
{
return self::$verifySslCerts;
}
/**
* @param boolean $verify
*/
public static function setVerifySslCerts($verify)
{
self::$verifySslCerts = $verify;
}
/**
* @return string | null The Stripe account ID for connected account
* requests.
*/
public static function getAccountId()
{
return self::$accountId;
}
/**
* @param string $accountId The Stripe account ID to set for connected
* account requests.
*/
public static function setAccountId($accountId)
{
self::$accountId = $accountId;
}
}