Completed
Push — master ( 2ffad2...8c5590 )
by mahdi
29:54
created
src/Config/payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     |
23 23
     */
24 24
     'drivers' => [
25
-        'zarinpal' => [ // set urls to https://sandbox.zarinpal.com/pg/rest/WebGate/ for using sandbox
25
+        'zarinpal' => [// set urls to https://sandbox.zarinpal.com/pg/rest/WebGate/ for using sandbox
26 26
             'apiPurchaseUrl' => 'https://www.zarinpal.com/pg/rest/WebGate/PaymentRequest.json',
27 27
             'apiPaymentUrl' => 'https://www.zarinpal.com/pg/StartPay/',
28 28
             'apiVerificationUrl' => 'https://www.zarinpal.com/pg/rest/WebGate/PaymentVerification.json',
Please login to merge, or discard this patch.
src/Provider/PaymentServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         /**
25 25
          * Bind to service container.
26 26
          */
27
-        $this->app->bind('shetabit-payment', function () {
27
+        $this->app->bind('shetabit-payment', function() {
28 28
             return new PaymentManager(config('payment'));
29 29
         });
30 30
     }
Please login to merge, or discard this patch.
src/Drivers/Irankish.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@
 block discarded – undo
83 83
         $output = '<html><head><meta charset="utf-8" />';
84 84
         $output .= '<script>function pay() { document.forms["pay"].submit(); }</script>';
85 85
         $output .= '</head><body onload="pay();"><form name="pay" method="post" action="'.$url.'">';
86
-        if ( !empty($data) ) {
86
+        if (!empty($data)) {
87 87
             foreach ($data as $key => $value) {
88
-                $output.='<input type="hidden" name="'.$key.'" value="'.$value.'">';
88
+                $output .= '<input type="hidden" name="'.$key.'" value="'.$value.'">';
89 89
             }
90 90
         }
91
-        $output.='<input type="submit" value="doing the payment...">';
92
-        $output.='</form></body></html>';
91
+        $output .= '<input type="submit" value="doing the payment...">';
92
+        $output .= '</form></body></html>';
93 93
 
94 94
         return $output;
95 95
     }
Please login to merge, or discard this patch.
src/Abstracts/Driver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@
 block discarded – undo
83 83
         $output = '<html><head><meta charset="utf-8" />';
84 84
         $output .= '<script>function pay() { document.forms["pay"].submit(); }</script>';
85 85
         $output .= '</head><body onload="pay();"><form name="pay" method="post" action="'.$url.'">';
86
-        if ( !empty($data) ) {
86
+        if (!empty($data)) {
87 87
             foreach ($data as $key => $value) {
88
-                $output.='<input type="hidden" name="'.$key.'" value="'.$value.'">';
88
+                $output .= '<input type="hidden" name="'.$key.'" value="'.$value.'">';
89 89
             }
90 90
         }
91
-        $output.='<input type="submit" value="doing the payment...">';
92
-        $output.='</form></body></html>';
91
+        $output .= '<input type="submit" value="doing the payment...">';
92
+        $output .= '</form></body></html>';
93 93
 
94 94
         return $output;
95 95
     }
Please login to merge, or discard this patch.