1 | <?php |
||
22 | class Config extends GatewayConfig implements \JsonSerializable { |
||
23 | /** |
||
24 | * Business Id. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $business_id; |
||
29 | |||
30 | /** |
||
31 | * User. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | private $username; |
||
36 | |||
37 | /** |
||
38 | * Password. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | private $password; |
||
43 | |||
44 | /** |
||
45 | * Store ID. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | private $store_id; |
||
50 | |||
51 | /** |
||
52 | * Construct config object. |
||
53 | * |
||
54 | * @param string $mode Mode. |
||
55 | * @param string $business_id Business Id. |
||
56 | * @param string $username Username. |
||
57 | * @param string $password Password. |
||
58 | * @param string $store_id Store ID. |
||
59 | */ |
||
60 | 11 | public function __construct( $mode, $business_id, $username, $password, $store_id ) { |
|
67 | |||
68 | /** |
||
69 | * Get business ID. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 3 | public function get_business_id() { |
|
76 | |||
77 | /** |
||
78 | * Get username. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | 6 | public function get_username() { |
|
85 | |||
86 | /** |
||
87 | * Get password. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 6 | public function get_password() { |
|
94 | |||
95 | /** |
||
96 | * Get store ID. |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | 3 | public function get_store_id() { |
|
103 | |||
104 | /** |
||
105 | * Get endpoint URL. |
||
106 | * |
||
107 | * @link https://developers.acehubpaymentservices.com/docs/service-endpoints-and-headers |
||
108 | * @param string $path Path. |
||
109 | * @return string |
||
110 | */ |
||
111 | 8 | public function get_endpoint_url( $path ) { |
|
118 | |||
119 | /** |
||
120 | * JSON serialize. |
||
121 | * |
||
122 | * @return object |
||
123 | */ |
||
124 | 2 | public function jsonSerialize() { |
|
133 | } |
||
134 |