Passed
Push — master ( 8b9470...3ffccf )
by mahdi
03:12
created
config/payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@
 block discarded – undo
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' => '',
Please login to merge, or discard this patch.
src/Drivers/Aqayepardakht/Aqayepardakht.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $tracking_number = Request::post("tracking_number");
108 108
         $transid = Request::post("transid");
109
-        if ($tracking_number === null || $tracking_number === ""|| $transid === ""|| $transid === null) {
109
+        if ($tracking_number === null || $tracking_number === "" || $transid === "" || $transid === null) {
110 110
             $this->notVerified('پرداخت ناموفق.');
111 111
         }
112 112
         $data = [
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     protected function getErrorMessage($code)
174 174
     {
175
-        $code = (int)$code;
175
+        $code = (int) $code;
176 176
         switch ($code) {
177 177
             case -1: return "مبلغ نباید خالی باشد.";
178 178
             case -2: return "کد پین درگاه نمیتواند خالی باشد.";
Please login to merge, or discard this patch.