forked from PayBy/PayBy-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.php
34 lines (27 loc) · 1.04 KB
/
init.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
if (!function_exists('curl_init')) {
throw new Exception('PayBy needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
throw new Exception('PayBy needs the JSON PHP extension.');
}
if (!function_exists('mb_detect_encoding')) {
throw new Exception('PayBy needs the Multibyte String PHP extension.');
}
// PayBy
require(dirname(__FILE__) . '/lib/PayBy.php');
// Utilities
require(dirname(__FILE__) . '/lib/Util/Util.php');
require(dirname(__FILE__) . '/lib/Util/Set.php');
// Errors
require(dirname(__FILE__) . '/lib/Error/Base.php');
require(dirname(__FILE__) . '/lib/Error/Api.php');
require(dirname(__FILE__) . '/lib/Error/ApiConnection.php');
require(dirname(__FILE__) . '/lib/Error/Authentication.php');
require(dirname(__FILE__) . '/lib/Error/InvalidRequest.php');
require(dirname(__FILE__) . '/lib/PayByObject.php');
// Api Base
require(dirname(__FILE__) . '/lib/Api/ApiRequestor.php');
require(dirname(__FILE__) . '/lib/Api/ApiResource.php');
// PayBy API Resources
require(dirname(__FILE__) . '/lib/Api/Order.php');