@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | throw new MerchantException('Response is not successful'); |
84 | 84 | } |
85 | 85 | } catch (Exception $exception) { |
86 | - throw new MerchantException('Failed to refund a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
86 | + throw new MerchantException('Failed to refund a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | throw new MerchantException($response->getData()['message']); |
100 | 100 | } |
101 | 101 | } catch (Exception $exception) { |
102 | - throw new MerchantException('Failed to remove a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
102 | + throw new MerchantException('Failed to remove a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'confirm' => true, |
119 | 119 | ], $ignore3dSecure))->send(); |
120 | 120 | } catch (Exception $exception) { |
121 | - throw new MerchantException('Failed to charge a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
121 | + throw new MerchantException('Failed to charge a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | if ($response->isRedirect()) { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | if (isset($response->getData()['error']['message'])) { |
172 | - throw new MerchantException('Failed to charge card: ' . $response->getData()['error']['message']); |
|
172 | + throw new MerchantException('Failed to charge card: '.$response->getData()['error']['message']); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | throw new MerchantException('Failed to charge card'); |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | 'capture_method' => 'manual' |
240 | 240 | ], $ignore3dSecure))->send(); |
241 | 241 | } catch (Exception $exception) { |
242 | - throw new MerchantException('Failed to authorize a payment card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
242 | + throw new MerchantException('Failed to authorize a payment card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
243 | 243 | } |
244 | 244 | |
245 | 245 | if ($response->isRedirect()) { |
@@ -281,10 +281,10 @@ discard block |
||
281 | 281 | ])->send(); |
282 | 282 | |
283 | 283 | if (!$response->isCancelled()) { |
284 | - throw new MerchantException('Payment has not been canceled, actual status: ' . $response->getStatus()); |
|
284 | + throw new MerchantException('Payment has not been canceled, actual status: '.$response->getStatus()); |
|
285 | 285 | } |
286 | 286 | } catch (Exception $exception) { |
287 | - throw new MerchantException('Failed to cancel a card authorization: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
287 | + throw new MerchantException('Failed to cancel a card authorization: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
288 | 288 | } |
289 | 289 | } |
290 | 290 | } |