|
@@ -107,7 +107,7 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
$token = $this->invoice->getTransactionId() ?? Request::input('Token'); |
|
108
|
108
|
|
|
109
|
109
|
if (empty($token)) { |
|
110
|
|
- throw new InvalidPaymentException('تراکنش توسط کاربر کنسل شده است.', (int)$status); |
|
|
110
|
+ throw new InvalidPaymentException('تراکنش توسط کاربر کنسل شده است.', (int) $status); |
|
111
|
111
|
} |
|
112
|
112
|
|
|
113
|
113
|
$data = $this->prepareVerificationData(); |
|
@@ -123,7 +123,7 @@ discard block |
|
|
block discarded – undo |
|
123
|
123
|
$hasWrongRRN = (!isset($result->RRN) || $result->RRN <= 0); |
|
124
|
124
|
if ($hasWrongStatus || $hasWrongRRN) { |
|
125
|
125
|
$message = 'خطا از سمت بانک با کد '.$result->Status.' رخ داده است.'; |
|
126
|
|
- throw new InvalidPaymentException($message, (int)$result->Status); |
|
|
126
|
+ throw new InvalidPaymentException($message, (int) $result->Status); |
|
127
|
127
|
} |
|
128
|
128
|
|
|
129
|
129
|
return $this->createReceipt($result->RRN); |
Please login to merge, or discard this patch.