Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102859839
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
Mon, Feb 24, 22:51
Size
2 KB
Mime Type
text/x-php
Expires
Wed, Feb 26, 22:51 (2 d)
Engine
blob
Format
Raw Data
Handle
24437792
Attached To
rPH Phabricator
Stripe.php
View Options
<?php
// Tested on PHP 5.2, 5.3
// This snippet (and some of the curl code) due to the Facebook SDK.
if
(!
function_exists
(
'curl_init'
))
{
throw
new
Exception
(
'Stripe needs the CURL PHP extension.'
);
}
if
(!
function_exists
(
'json_decode'
))
{
throw
new
Exception
(
'Stripe needs the JSON PHP extension.'
);
}
if
(!
function_exists
(
'mb_detect_encoding'
))
{
throw
new
Exception
(
'Stripe needs the Multibyte String PHP extension.'
);
}
// Stripe singleton
require
(
dirname
(
__FILE__
)
.
'/Stripe/Stripe.php'
);
// Utilities
require
(
dirname
(
__FILE__
)
.
'/Stripe/Util.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Util/Set.php'
);
// Errors
require
(
dirname
(
__FILE__
)
.
'/Stripe/Error.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/ApiError.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/ApiConnectionError.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/AuthenticationError.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/CardError.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/InvalidRequestError.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/RateLimitError.php'
);
// Plumbing
require
(
dirname
(
__FILE__
)
.
'/Stripe/Object.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/ApiRequestor.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/ApiResource.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/SingletonApiResource.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/AttachedObject.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/List.php'
);
// Stripe API Resources
require
(
dirname
(
__FILE__
)
.
'/Stripe/Account.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Card.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Balance.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/BalanceTransaction.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Charge.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Customer.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Invoice.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/InvoiceItem.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Plan.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Subscription.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Token.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Coupon.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Event.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Transfer.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Recipient.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/Refund.php'
);
require
(
dirname
(
__FILE__
)
.
'/Stripe/ApplicationFee.php'
);
Event Timeline
Log In to Comment