@@ -134,15 +134,15 @@ discard block |
||
134 | 134 | { |
135 | 135 | $receipt = new Receipt('fanavacard', $referenceId); |
136 | 136 | $receipt->detail([ |
137 | - 'ResNum'=>Request::input('ResNum'), |
|
138 | - 'RefNum'=>Request::input('RefNum'), |
|
139 | - 'token'=>Request::input('token'), |
|
140 | - 'CustomerRefNum'=>Request::input('CustomerRefNum'), |
|
141 | - 'CardMaskPan'=>Request::input('CardMaskPan'), |
|
142 | - 'transactionAmount'=>Request::input('transactionAmount'), |
|
143 | - 'emailAddress'=>Request::input('emailAddress'), |
|
144 | - 'mobileNo'=>Request::input('mobileNo'), |
|
145 | - ]); |
|
137 | + 'ResNum'=>Request::input('ResNum'), |
|
138 | + 'RefNum'=>Request::input('RefNum'), |
|
139 | + 'token'=>Request::input('token'), |
|
140 | + 'CustomerRefNum'=>Request::input('CustomerRefNum'), |
|
141 | + 'CardMaskPan'=>Request::input('CardMaskPan'), |
|
142 | + 'transactionAmount'=>Request::input('transactionAmount'), |
|
143 | + 'emailAddress'=>Request::input('emailAddress'), |
|
144 | + 'mobileNo'=>Request::input('mobileNo'), |
|
145 | + ]); |
|
146 | 146 | return $receipt; |
147 | 147 | } |
148 | 148 | |
@@ -184,11 +184,11 @@ discard block |
||
184 | 184 | private function httpClientInit(): void |
185 | 185 | { |
186 | 186 | $this->client = new Client([ |
187 | - 'curl'=>[CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1',], |
|
188 | - 'verify' => false, |
|
189 | - 'base_uri' => $this->settings->baseUri, |
|
190 | - 'headers' => ['Content-Type' => 'application/json',], |
|
191 | - ]); |
|
187 | + 'curl'=>[CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1',], |
|
188 | + 'verify' => false, |
|
189 | + 'base_uri' => $this->settings->baseUri, |
|
190 | + 'headers' => ['Content-Type' => 'application/json',], |
|
191 | + ]); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | private function getWsContext(): array |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function __construct(Invoice $invoice, $settings) |
47 | 47 | { |
48 | 48 | $this->invoice($invoice); |
49 | - $this->settings = (object)$settings; |
|
49 | + $this->settings = (object) $settings; |
|
50 | 50 | $this->httpClientInit(); |
51 | 51 | } |
52 | 52 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | public function purchase() |
61 | 61 | { |
62 | 62 | $this->invoice->uuid(crc32($this->invoice->getUuid())); |
63 | - $token = $this->getToken(); |
|
63 | + $token = $this->getToken(); |
|
64 | 64 | $this->invoice->transactionId($token['Token']); |
65 | 65 | |
66 | 66 | return $this->invoice->getTransactionId(); |
@@ -184,10 +184,10 @@ discard block |
||
184 | 184 | private function httpClientInit(): void |
185 | 185 | { |
186 | 186 | $this->client = new Client([ |
187 | - 'curl'=>[CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1',], |
|
187 | + 'curl'=>[CURLOPT_SSL_CIPHER_LIST=>'DEFAULT@SECLEVEL=1', ], |
|
188 | 188 | 'verify' => false, |
189 | 189 | 'base_uri' => $this->settings->baseUri, |
190 | - 'headers' => ['Content-Type' => 'application/json',], |
|
190 | + 'headers' => ['Content-Type' => 'application/json', ], |
|
191 | 191 | ]); |
192 | 192 | } |
193 | 193 |