@@ -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 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | */ |
100 | 100 | public function pay() |
101 | 101 | { |
102 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
102 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
103 | 103 | |
104 | 104 | // use sandbox url if we are in sandbox mode |
105 | 105 | if (!empty($this->settings->sandbox)) { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | */ |
96 | 96 | public function pay() |
97 | 97 | { |
98 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
98 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
99 | 99 | $payUrl = $apiUrl.$this->invoice->getTransactionId(); |
100 | 100 | |
101 | 101 | // redirect using laravel logic |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function __construct(Invoice $invoice, $settings) |
33 | 33 | { |
34 | 34 | $this->invoice($invoice); |
35 | - $this->settings = (object)$settings; |
|
35 | + $this->settings = (object) $settings; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $data->merchantId = $this->settings->merchantId; |
67 | 67 | $data->amount = $this->invoice->getAmount(); |
68 | 68 | $data->callback = $this->settings->callbackUrl; |
69 | - $data->orderNumber = intval(1, time()) . crc32($this->invoice->getUuid()); |
|
69 | + $data->orderNumber = intval(1, time()).crc32($this->invoice->getUuid()); |
|
70 | 70 | |
71 | 71 | $data->fromCurrencyCode = 978; |
72 | 72 | $data->toCurrencyCode = 364; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function pay() |
105 | 105 | { |
106 | - $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
106 | + $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
107 | 107 | |
108 | 108 | // redirect using laravel logic |
109 | 109 | return redirect()->to($payUrl); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public function __construct(Invoice $invoice, $settings) |
41 | 41 | { |
42 | 42 | $this->invoice($invoice); |
43 | - $this->settings = (object)$settings; |
|
43 | + $this->settings = (object) $settings; |
|
44 | 44 | $this->client = new Client(); |
45 | 45 | } |
46 | 46 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function pay() |
91 | 91 | { |
92 | - $payUrl = $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
92 | + $payUrl = $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
93 | 93 | |
94 | 94 | // redirect using laravel logic |
95 | 95 | return redirect()->to($payUrl); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function __construct(Invoice $invoice, $settings) |
33 | 33 | { |
34 | 34 | $this->invoice($invoice); |
35 | - $this->settings = (object)$settings; |
|
35 | + $this->settings = (object) $settings; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $soap = new \SoapClient($this->settings->apiVerificationUrl); |
110 | 110 | $response = $soap->KicccPaymentsVerification($data); |
111 | 111 | |
112 | - $status = (int)($response->KicccPaymentsVerificationResult); |
|
112 | + $status = (int) ($response->KicccPaymentsVerificationResult); |
|
113 | 113 | |
114 | 114 | $this->invoice->refId($data['referenceNumber']); |
115 | 115 |