@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public function __construct(Invoice $invoice, $settings) |
| 38 | 38 | { |
| 39 | 39 | $this->invoice($invoice); |
| 40 | - $this->settings = (object)$settings; |
|
| 40 | + $this->settings = (object) $settings; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | $response = $soap->RequestToken($data['MID'], $data['ResNum'], $data['Amount'], $data['CellNumber']); |
| 70 | 70 | |
| 71 | - $status = (int)$response; |
|
| 71 | + $status = (int) $response; |
|
| 72 | 72 | |
| 73 | 73 | if ($status < 0) { // if something has done in a wrong way |
| 74 | 74 | $this->purchaseFailed($response); |
@@ -116,13 +116,13 @@ discard block |
||
| 116 | 116 | ); |
| 117 | 117 | |
| 118 | 118 | $soap = new \SoapClient($this->settings->apiVerificationUrl); |
| 119 | - $status = (int)$soap->VerifyTransaction($data['RefNum'], $data['merchantId']); |
|
| 119 | + $status = (int) $soap->VerifyTransaction($data['RefNum'], $data['merchantId']); |
|
| 120 | 120 | |
| 121 | 121 | if ($status < 0) { |
| 122 | 122 | $this->notVerified($status); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - $receipt = $this->createReceipt($data['RefNum']); |
|
| 125 | + $receipt = $this->createReceipt($data['RefNum']); |
|
| 126 | 126 | $receipt->detail([ |
| 127 | 127 | 'traceNo' => Request::input('TraceNo'), |
| 128 | 128 | 'referenceNo' => Request::input('RRN'), |