@@ -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 | |