mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
643c1c4a52
Summary: Ref T2787. This brings us up to date. Test Plan: `git clone` Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T2787 Differential Revision: https://secure.phabricator.com/D9916
57 lines
2.3 KiB
PHP
57 lines
2.3 KiB
PHP
<?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');
|