@@ -314,7 +314,7 @@ |
||
| 314 | 314 | 'apiPaymentUrl' => 'https://panel.aqayepardakht.ir/startpay/', |
| 315 | 315 | 'apiPaymentUrlSandbox' => 'https://panel.aqayepardakht.ir/startpay/sandbox/', |
| 316 | 316 | 'apiVerificationUrl' => 'https://panel.aqayepardakht.ir/api/v2/verify', |
| 317 | - 'mode' => 'normal' , //normal | sandbox |
|
| 317 | + 'mode' => 'normal', //normal | sandbox |
|
| 318 | 318 | 'callbackUrl' => '', |
| 319 | 319 | 'pin' => '', |
| 320 | 320 | 'invoice_id' => '', |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | public function pay(): RedirectionForm |
| 92 | 92 | { |
| 93 | 93 | $url = $this->settings->mode === "normal" ? $this->settings->apiPaymentUrl : $this->settings->apiPaymentUrlSandbox; |
| 94 | - $url = $url . $this->invoice->getTransactionId(); |
|
| 94 | + $url = $url.$this->invoice->getTransactionId(); |
|
| 95 | 95 | |
| 96 | 96 | return $this->redirectWithForm($url, [], 'GET'); |
| 97 | 97 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | protected function getErrorMessage($code) |
| 173 | 173 | { |
| 174 | - $code = (int)$code; |
|
| 174 | + $code = (int) $code; |
|
| 175 | 175 | switch ($code) { |
| 176 | 176 | case -1: return "مبلغ نباید خالی باشد."; |
| 177 | 177 | case -2: return "کد پین درگاه نمیتواند خالی باشد."; |