@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ))->GetToken2Result; |
| 78 | 78 | $result = json_decode($response); |
| 79 | 79 | |
| 80 | - if (! isset($result->ResCod) || ! in_array($result->ResCod, ['0', '00'])) { |
|
| 80 | + if (!isset($result->ResCod) || !in_array($result->ResCod, ['0', '00'])) { |
|
| 81 | 81 | // error has happened |
| 82 | 82 | $message = $result->Message ?? 'خطای ناشناخته رخ داده'; |
| 83 | 83 | throw new PurchaseFailedException($message); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | public function verify() : ReceiptInterface |
| 122 | 122 | { |
| 123 | 123 | $resCode = Request::input('ResCod'); |
| 124 | - if (! in_array($resCode, array('0', '00'))) { |
|
| 124 | + if (!in_array($resCode, array('0', '00'))) { |
|
| 125 | 125 | $message = 'پرداخت توسط کاربر لغو شد'; |
| 126 | 126 | throw new InvalidPaymentException($message); |
| 127 | 127 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $response = $client->Confirm2($data)->Confirm2Result; |
| 140 | 140 | $result = json_decode($response); |
| 141 | 141 | |
| 142 | - if (! isset($result->ResCod) || ! in_array($result->ResCod, array('0', '00'))) |
|
| 142 | + if (!isset($result->ResCod) || !in_array($result->ResCod, array('0', '00'))) |
|
| 143 | 143 | { |
| 144 | 144 | $message = $result->Message ?? 'خطا در انجام عملیات رخ داده است'; |
| 145 | 145 | throw new InvalidPaymentException($message); |