Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1568107
Refund.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
820 B
Referenced Files
None
Subscribers
None
Refund.php
View Options
<?php
class
Stripe_Refund
extends
Stripe_ApiResource
{
/**
* @return string The API URL for this Stripe refund.
*/
public
function
instanceUrl
()
{
$id
=
$this
[
'id'
];
$charge
=
$this
[
'charge'
];
if
(!
$id
)
{
throw
new
Stripe_InvalidRequestError
(
"Could not determine which URL to request: "
.
"class instance has invalid ID: $id"
,
null
);
}
$id
=
Stripe_ApiRequestor
::
utf8
(
$id
);
$charge
=
Stripe_ApiRequestor
::
utf8
(
$charge
);
$base
=
self
::
classUrl
(
'Stripe_Charge'
);
$chargeExtn
=
urlencode
(
$charge
);
$extn
=
urlencode
(
$id
);
return
"$base/$chargeExtn/refunds/$extn"
;
}
/**
* @return Stripe_Refund The saved refund.
*/
public
function
save
()
{
$class
=
get_class
();
return
self
::
_scopedSave
(
$class
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 15, 5:13 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
359857
Default Alt Text
Refund.php (820 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment