Passed
Pull Request — master (#155)
by
unknown
06:03 queued 03:39
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   +2 added lines, -2 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
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
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 "کد پین درگاه نمیتواند خالی باشد.";
Please login to merge, or discard this patch.