-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathExamplesConfig.php
More file actions
30 lines (24 loc) · 880 Bytes
/
ExamplesConfig.php
File metadata and controls
30 lines (24 loc) · 880 Bytes
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
<?php
namespace Tpay\Example;
use Tpay\OpenApi\Utilities\Util;
class ExamplesConfig
{
// Ask Tpay to get Partner access
const PARTNER_CLIENT_ID = '';
const PARTNER_CLIENT_SECRET = '';
const MERCHANT_CLIENT_ID = '--put--your--client--id--here';
const MERCHANT_CLIENT_SECRET = '--put--your--client--secret--here';
const MERCHANT_CONFIRMATION_CODE = '--put--your--confirmation-code--here';
const MERCHANT_RSA_KEY = '--put--your--RSA-key--here';
public function __construct()
{
Util::$libraryPath = '/src/';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once 'vendor/autoload.php';
if (self::MERCHANT_CLIENT_ID === '--put--your--client--id--here') {
exit('Please fill your API credentials in file: '.__DIR__);
}
}
}