@@ -22,7 +22,7 @@ |
||
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', |
@@ -24,7 +24,7 @@ |
||
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 | } |
@@ -83,13 +83,13 @@ |
||
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 | } |
@@ -83,13 +83,13 @@ |
||
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 | } |