Test Setup Failed
Push — main ( e9fc11...b88300 )
by امید
11:00
created
src/ParsianRefund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function getDefaultConfigPath() : string
78 78
     {
79
-        return __DIR__.'/config/parsianRefund.php';
79
+        return __DIR__ . '/config/parsianRefund.php';
80 80
     }
81 81
 
82 82
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $fields   = $this->getFields();
252 252
         $response = $this->httpRequest()
253 253
             ->timeout($this->settings['http_request']['time_out'])
254
-            ->retry($this->settings['http_request']['retry_times'], $this->settings['http_request']['retry_sleep'], function ($exeption) {
254
+            ->retry($this->settings['http_request']['retry_times'], $this->settings['http_request']['retry_sleep'], function($exeption) {
255 255
                 return !($exeption instanceof RequestException);
256 256
             })->post("doRefund", $this->getRequest($fields));
257 257
         if ($response->json('Data') == null) {
Please login to merge, or discard this patch.
src/config/parsianRefund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
     'apiRefundUrl'     => 'https://refundservices.pec.ir/api/Refund/',
7 7
     'withoutVerifying' => 'false',
8 8
     'certificate'      => '',
9
-    'certificateType'  => 'xml_file',// can be: xml_file, xml_string
9
+    'certificateType'  => 'xml_file', // can be: xml_file, xml_string
10 10
     'callbackUrl'      => 'http://yoursite.com/path/to',
11 11
     'http_request'     => [
12 12
         'time_out'    => env('APP_HTTP_TIME_OUT', 10),
13 13
         'retry_times' => env('APP_HTTP_RETRY_TIMES', 10),
14
-        'retry_sleep' => env('APP_HTTP_RETRY_SLEEP', 1000),// in millisecond unit
14
+        'retry_sleep' => env('APP_HTTP_RETRY_SLEEP', 1000), // in millisecond unit
15 15
     ],
16 16
 ];
Please login to merge, or discard this patch.