@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | if (!empty($this->settings->signKey)) { |
85 | 85 | $data['sign'] = hash_hmac( |
86 | 86 | 'SHA512', |
87 | - $amount . '#' . $order_id . '#' . $callback, |
|
87 | + $amount.'#'.$order_id.'#'.$callback, |
|
88 | 88 | $this->settings->signKey |
89 | 89 | ); |
90 | 90 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'headers' => [ |
99 | 99 | 'Content-Type' => 'application/json', |
100 | 100 | 'Accept' => 'application/json', |
101 | - 'Authorization' => 'Bearer ' . $this->settings->gatewayId, |
|
101 | + 'Authorization' => 'Bearer '.$this->settings->gatewayId, |
|
102 | 102 | ], |
103 | 103 | 'body' => json_encode($data), |
104 | 104 | ] |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | if (!empty($this->settings->signKey)) { |
164 | 164 | $data['sign'] = hash_hmac( |
165 | 165 | 'SHA512', |
166 | - $amount . '#' . $order_id . '#' . $callback, |
|
166 | + $amount.'#'.$order_id.'#'.$callback, |
|
167 | 167 | $this->settings->signKey |
168 | 168 | ); |
169 | 169 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | 'headers' => [ |
176 | 176 | 'Content-Type' => 'application/json', |
177 | 177 | 'Accept' => 'application/json', |
178 | - 'Authorization' => 'Bearer ' . $this->settings->gatewayId, |
|
178 | + 'Authorization' => 'Bearer '.$this->settings->gatewayId, |
|
179 | 179 | ], |
180 | 180 | 'body' => json_encode($data), |
181 | 181 | ] |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $body = json_decode($response->getBody()->getContents()); |
185 | 185 | |
186 | 186 | if ($body->status !== 1) { |
187 | - throw new InvalidPaymentException($this->translateStatus($body->status), (int)$body->status); |
|
187 | + throw new InvalidPaymentException($this->translateStatus($body->status), (int) $body->status); |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | return $this->createReceipt($refNum); |