@@ -18,10 +18,10 @@ |
||
18 | 18 | $payment->setOrderID($settings['transaction']['orderId']); |
19 | 19 | // Get transaction status. |
20 | 20 | $payment->create( |
21 | - $settings['transaction']['mobilePhone'], |
|
22 | - $settings['transaction']['amount'], |
|
23 | - $settings['transaction']['text'], |
|
24 | - $settings['transaction']['callback'] |
|
21 | + $settings['transaction']['mobilePhone'], |
|
22 | + $settings['transaction']['amount'], |
|
23 | + $settings['transaction']['text'], |
|
24 | + $settings['transaction']['callback'] |
|
25 | 25 | ); |
26 | 26 | // Dump last response. |
27 | 27 | var_dump($payment->getLastResponse()); |
@@ -264,12 +264,12 @@ discard block |
||
264 | 264 | protected function getHeaders($method) |
265 | 265 | { |
266 | 266 | $headers = [ |
267 | - 'Content-Type' => 'application/json', |
|
268 | - 'X-UserId' => $this->merchantID, |
|
269 | - 'Authorization' => 'Secret ' . $this->token, |
|
270 | - 'X-Request-Id' => (string) $this->requestID, |
|
271 | - 'X-TimeStamp' => (string) new DataTime(), |
|
272 | - 'X-Source-Address' => getenv('HTTP_CLIENT_IP') |
|
267 | + 'Content-Type' => 'application/json', |
|
268 | + 'X-UserId' => $this->merchantID, |
|
269 | + 'Authorization' => 'Secret ' . $this->token, |
|
270 | + 'X-Request-Id' => (string) $this->requestID, |
|
271 | + 'X-TimeStamp' => (string) new DataTime(), |
|
272 | + 'X-Source-Address' => getenv('HTTP_CLIENT_IP') |
|
273 | 273 | ?:getenv('HTTP_X_FORWARDED_FOR') |
274 | 274 | ?:getenv('HTTP_X_FORWARDED') |
275 | 275 | ?:getenv('HTTP_FORWARDED_FOR') |
@@ -296,9 +296,9 @@ discard block |
||
296 | 296 | protected function getPayload(array $payload) |
297 | 297 | { |
298 | 298 | $payload = array_merge_recursive($payload, [ |
299 | - 'merchantInfo' => [ |
|
299 | + 'merchantInfo' => [ |
|
300 | 300 | 'merchantSerialNumber' => $this->merchantSerialNumber, |
301 | - ], |
|
301 | + ], |
|
302 | 302 | ]); |
303 | 303 | return json_encode($payload, JSON_UNESCAPED_SLASHES); |
304 | 304 | } |