@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | throw new MerchantException('Response is not successful'); |
| 83 | 83 | } |
| 84 | 84 | } catch (Exception $exception) { |
| 85 | - throw new MerchantException('Failed to refund a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
| 85 | + throw new MerchantException('Failed to refund a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | throw new MerchantException('Response is not successful'); |
| 99 | 99 | } |
| 100 | 100 | } catch (Exception $exception) { |
| 101 | - throw new MerchantException('Failed to remove a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
| 101 | + throw new MerchantException('Failed to remove a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | 'confirm' => true, |
| 118 | 118 | ], $ignore3dSecure))->send(); |
| 119 | 119 | } catch (Exception $exception) { |
| 120 | - throw new MerchantException('Failed to charge a card: ' . $exception->getMessage(), $exception->getCode(), $exception); |
|
| 120 | + throw new MerchantException('Failed to charge a card: '.$exception->getMessage(), $exception->getCode(), $exception); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | if ($response->isRedirect()) { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | if (isset($response->getData()['error']['message'])) { |
| 171 | - throw new MerchantException('Failed to charge card: ' . $response->getData()['error']['message']); |
|
| 171 | + throw new MerchantException('Failed to charge card: '.$response->getData()['error']['message']); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | throw new MerchantException('Failed to charge card'); |