Repository navigation
Expand file tree
/
Copy pathConfig.php
More file actions
94 lines (80 loc) · 1.79 KB
/
Copy pathConfig.php
File metadata and controls
94 lines (80 loc) · 1.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
include_once 'ConfigInterface.php';
class Config implements ConfigInterface
{
private $hostBaseUrl = "http://xxx.com/http_example";
private $endpointBaseUrl = 'http://sandbox-cashierapi.opayweb.com';
private $pubKey = 'OPAYPUBxxxxxxxxxxxxx.xxxxxxxxxxxxx';
private $prvKey = 'OPAYPRVxxxxxxxxxxxxx.xxxxxxxxxxxxx';
private $merchantId = '256620xxxxxxxxxxxxx';
/**
* @return string
*/
public function getHostBaseUrl(): string
{
return $this->hostBaseUrl;
}
/**
* @param string $hostBaseUrl
*/
public function setHostBaseUrl(string $hostBaseUrl): void
{
$this->hostBaseUrl = $hostBaseUrl;
}
/**
* @return string
*/
public function getEndpointBaseUrl(): string
{
return $this->endpointBaseUrl;
}
/**
* @param string $endpointBaseUrl
*/
public function setEndpointBaseUrl(string $endpointBaseUrl): void
{
$this->endpointBaseUrl = $endpointBaseUrl;
}
/**
* @return string
*/
public function getPubKey(): string
{
return $this->pubKey;
}
/**
* @param string $pubKey
*/
public function setPubKey(string $pubKey): void
{
$this->pubKey = $pubKey;
}
/**
* @return string
*/
public function getPrvKey(): string
{
return $this->prvKey;
}
/**
* @param string $prvKey
*/
public function setPrvKey(string $prvKey): void
{
$this->prvKey = $prvKey;
}
/**
* @return string
*/
public function getMerchantId(): string
{
return $this->merchantId;
}
/**
* @param string $merchantId
*/
public function setMerchantId(string $merchantId): void
{
$this->merchantId = $merchantId;
}
}