-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.dist.php
More file actions
45 lines (37 loc) · 1.83 KB
/
config.dist.php
File metadata and controls
45 lines (37 loc) · 1.83 KB
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
<?php
// Merchant Site ID
// You can overwite this value after including config.php file by defining S2P_SDK_FORCE_SITE_ID constant
if (!defined('S2P_SDK_SITE_ID')) {
define('S2P_SDK_SITE_ID', '{PROVIDED_SITE_ID}');
}
// Merchant API Key or API Key generated for a site
// You can overwite this value after including config.php file by defining S2P_SDK_FORCE_API_KEY constant
if (!defined('S2P_SDK_API_KEY')) {
define('S2P_SDK_API_KEY', '{PROVIDED_API_KEY}');
}
// Tells SDK where to send the request (test server or live server)
// You can overwite this value after including config.php file by defining S2P_SDK_FORCE_ENVIRONMENT constant
if (!defined('S2P_SDK_ENVIRONMENT')) {
define('S2P_SDK_ENVIRONMENT', '');
} // live or test
// When environment is set to custom, you can provide a custom REST API base URL
if (!defined('S2P_SDK_CUSTOM_BASE_URL')) {
define('S2P_SDK_CUSTOM_BASE_URL', '');
}
// Tells SDK default return URL to be used when payments are initiated.
// If return url parameter is not specified in payment method initialization parameters SDK will check this constant
// regexp: ^(http(s)?(:\/\/|%3A%2F%2F).+){1,512}$
if (!defined('S2P_SDK_PAYMENT_RETURN_URL')) {
define('S2P_SDK_PAYMENT_RETURN_URL', '');
}
// Set SDK in debugging mode (or not)
S2P_SDK\S2P_SDK_Module::st_debugging_mode(false);
// display full trace with the error (or not)
S2P_SDK\S2P_SDK_Module::st_detailed_errors(false);
// Favor throwing errors when setting errors in classes (or not)
S2P_SDK\S2P_SDK_Module::st_throw_errors(false);
// If you use will use more than English as language, you can set this to true
S2P_SDK\S2P_SDK_Module::set_multi_language(false);
if (!S2P_SDK\S2P_SDK_Language::language_container()->get_current_language()) {
S2P_SDK\S2P_SDK_Language::language_container()->set_current_language(S2P_SDK\S2P_SDK_Language::LANG_EN);
}