@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function __construct(Invoice $invoice, $settings) |
50 | 50 | { |
51 | 51 | $this->invoice($invoice); |
52 | - $this->settings = (object)$settings; |
|
52 | + $this->settings = (object) $settings; |
|
53 | 53 | $this->client = new Client( |
54 | 54 | [ |
55 | 55 | 'base_uri' => $this->settings->apiPurchaseUrl, |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $referenceId = hexdec(uniqid()); |
113 | 113 | $amount = $this->invoice->getAmount(); |
114 | 114 | |
115 | - $callback = $this->settings->callbackUrl . "?referenceId=" . $referenceId . "&price=" . $amount . "&mobile=" . $mobile; |
|
115 | + $callback = $this->settings->callbackUrl."?referenceId=".$referenceId."&price=".$amount."&mobile=".$mobile; |
|
116 | 116 | |
117 | 117 | $data = [ |
118 | 118 | 'referenceId' => $referenceId, |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | public function verify(): ReceiptInterface |
169 | 169 | { |
170 | 170 | $data = [ |
171 | - 'referenceId' => (int)$this->getInvoice()->getTransactionId(), |
|
171 | + 'referenceId' => (int) $this->getInvoice()->getTransactionId(), |
|
172 | 172 | 'header' => '', |
173 | 173 | 'content' => http_build_query($_POST), |
174 | 174 | ]; |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | { |
307 | 307 | $header[] = 'Content-Type: application/json'; |
308 | 308 | if ($forAuth) { |
309 | - $header[] = 'Authorization: Bearer ' . $this->auth(); |
|
309 | + $header[] = 'Authorization: Bearer '.$this->auth(); |
|
310 | 310 | } |
311 | 311 | $ch = curl_init($url); |
312 | 312 | curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); |