@@ -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 | } |
@@ -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 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | */ |
122 | 122 | public function getPayUrl() |
123 | 123 | { |
124 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
124 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -99,7 +99,7 @@ discard block |
||
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)) { |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | */ |
120 | 120 | public function getPayUrl() |
121 | 121 | { |
122 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
122 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
123 | 123 | |
124 | 124 | // use sandbox url if we are in sandbox mode |
125 | 125 | if (!empty($this->settings->sandbox)) { |
126 | 126 | $apiUrl = $this->settings->apiSandboxPaymentUrl; |
127 | 127 | } |
128 | 128 | |
129 | - return $apiUrl . $this->invoice->getTransactionId(); |
|
129 | + return $apiUrl.$this->invoice->getTransactionId(); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | public function getPayUrl() |
102 | 102 | { |
103 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
103 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -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); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function getPayUrl() |
118 | 118 | { |
119 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
119 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -113,7 +113,7 @@ |
||
113 | 113 | */ |
114 | 114 | public function getPayUrl() |
115 | 115 | { |
116 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
116 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -95,7 +95,7 @@ discard block |
||
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 |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function getPayUrl() |
111 | 111 | { |
112 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
112 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -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); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function getPayUrl() |
104 | 104 | { |
105 | - return $this->settings->apiPaymentUrl . $this->invoice->getTransactionId(); |
|
105 | + return $this->settings->apiPaymentUrl.$this->invoice->getTransactionId(); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |