-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.php
53 lines (44 loc) · 1.73 KB
/
load.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* @author Yaroslav <[email protected]>
* @copyright 2019 QIWI
* @license https://www.opensource.org/licenses/MIT MIT License
*/
if (!defined('_PS_VERSION_')) {
exit;
}
if (!defined('CLIENT_NAME')) {
/**
* The client name fingerprint.
*
* @const string
*/
define('CLIENT_NAME', 'prestashop');
}
if (!defined('CLIENT_VERSION')) {
/**
* The client version fingerprint.
*
* @const string
*/
define('CLIENT_VERSION', '0.0.3');
}
// Autoload for standalone composer build.
if (!class_exists('Curl\Curl')) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'curl' . DIRECTORY_SEPARATOR . 'curl' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Curl' . DIRECTORY_SEPARATOR . 'Curl.php';
}
if (!class_exists('Qiwi\Api\BillPaymentsException')) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'qiwi' . DIRECTORY_SEPARATOR . 'bill-payments-php-sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'BillPaymentsException.php';
}
if (!class_exists('Qiwi\Api\BillPayments')) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'qiwi' . DIRECTORY_SEPARATOR . 'bill-payments-php-sdk' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'BillPayments.php';
}
if (!class_exists('Qiwi\Client') ) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Client.php';
}
if (!class_exists('Qiwi\ConfigManager') ) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'ConfigManager.php';
}
if (!class_exists('Qiwi\OrderManager') ) {
require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'OrderManager.php';
}