-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-v2-sample.php
More file actions
35 lines (29 loc) · 1.13 KB
/
config-v2-sample.php
File metadata and controls
35 lines (29 loc) · 1.13 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
<?php
// Base URL
$appConfig['base_url'] = 'https://your-domain.com/v2/';
$appConfig['return_url'] = $appConfig['base_url'].'return.php';
$appConfig['environment'] = 'sandbox'; // or 'production'
// Bayarcash portal key & PAT for production
$appConfig['production'] = [
'bayarcash_portal_key' => 'your_production_portal_key',
'bayarcash_bearer_token' => 'your_production_bearer_token',
'bayarcash_api_secret_key' => 'your_production_secret_key'
];
// Bayarcash portal key & PAT for sandbox
$appConfig['sandbox'] = [
'bayarcash_portal_key' => 'your_sandbox_portal_key',
'bayarcash_bearer_token' => 'your_sandbox_bearer_token',
'bayarcash_api_secret_key' => 'your_sandbox_secret_key'
];
// Database configuration
$appConfig['bayarcash_db_host'] = 'localhost';
$appConfig['bayarcash_db_dbname'] = 'your_database_name';
$appConfig['bayarcash_db_username'] = 'your_database_username';
$appConfig['bayarcash_db_password'] = 'your_database_password';
if (!function_exists('getConfig')) {
function getConfig($config, $environment) {
return $config[$environment];
}
}
// Return the configuration array
return $appConfig;