Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104842603
Charge.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
Wed, Mar 12, 20:00
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Mar 14, 20:00 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24863494
Attached To
rPH Phabricator
Charge.php
View Options
<?php
class
Stripe_Charge
extends
Stripe_ApiResource
{
public
static
function
constructFrom
(
$values
,
$apiKey
=
null
)
{
$class
=
get_class
();
return
self
::
scopedConstructFrom
(
$class
,
$values
,
$apiKey
);
}
public
static
function
retrieve
(
$id
,
$apiKey
=
null
)
{
$class
=
get_class
();
return
self
::
_scopedRetrieve
(
$class
,
$id
,
$apiKey
);
}
public
static
function
all
(
$params
=
null
,
$apiKey
=
null
)
{
$class
=
get_class
();
return
self
::
_scopedAll
(
$class
,
$params
,
$apiKey
);
}
public
static
function
create
(
$params
=
null
,
$apiKey
=
null
)
{
$class
=
get_class
();
return
self
::
_scopedCreate
(
$class
,
$params
,
$apiKey
);
}
public
function
refund
(
$params
=
null
)
{
$requestor
=
new
Stripe_ApiRequestor
(
$this
->
_apiKey
);
$url
=
$this
->
instanceUrl
()
.
'/refund'
;
list
(
$response
,
$apiKey
)
=
$requestor
->
request
(
'post'
,
$url
,
$params
);
$this
->
refreshFrom
(
$response
,
$apiKey
);
return
$this
;
}
public
function
capture
(
$params
=
null
)
{
$requestor
=
new
Stripe_ApiRequestor
(
$this
->
_apiKey
);
$url
=
$this
->
instanceUrl
()
.
'/capture'
;
list
(
$response
,
$apiKey
)
=
$requestor
->
request
(
'post'
,
$url
,
$params
);
$this
->
refreshFrom
(
$response
,
$apiKey
);
return
$this
;
}
}
Event Timeline
Log In to Comment