Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97159254
Stripe.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 3, 01:04
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jan 5, 01:04 (2 d)
Engine
blob
Format
Raw Data
Handle
23340346
Attached To
rPH Phabricator
Stripe.php
View Options
<?php
abstract
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|null The version of the Stripe API to use for requests.
*/
public
static
$apiVersion
=
null
;
/**
* @var boolean Defaults to true.
*/
public
static
$verifySslCerts
=
true
;
const
VERSION
=
'1.16.0'
;
/**
* @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
;
}
}
Event Timeline
Log In to Comment