@@ -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 |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | if (($this->settings->version??'2')==='2') { |
| 112 | 112 | $this->invoice->transactionId($body['code']); |
| 113 | - }else{ |
|
| 113 | + } else{ |
|
| 114 | 114 | $this->invoice->transactionId($body['paymentCode']); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'amount' => $this->invoice->getAmount() / ($this->settings->currency == 'T' ? 1 : 10), // convert to toman |
| 147 | 147 | 'refId' => $refId, |
| 148 | 148 | ]; |
| 149 | - }else{ |
|
| 149 | + } else{ |
|
| 150 | 150 | $data = [ |
| 151 | 151 | 'paymentRefId' => $refId |
| 152 | 152 | ]; |