@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | |
75 | 75 | $amount = $this->invoice->getAmount(); |
76 | - if ($this->settings->currency == 'T'){ //convert amount to rial, payment gateways need rial |
|
76 | + if ($this->settings->currency == 'T') { //convert amount to rial, payment gateways need rial |
|
77 | 77 | $amount = $amount * 10; |
78 | 78 | } |
79 | 79 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $token = $r['token']; |
96 | 96 | $this->invoice->transactionId($token); |
97 | 97 | return $this->invoice->getTransactionId(); |
98 | - }else{ |
|
98 | + } else { |
|
99 | 99 | $error_message = $r['errorMessage']; |
100 | 100 | throw new PurchaseFailedException($error_message); |
101 | 101 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | if ($result['success'] == 1) { //will verify here |
133 | 133 | $apiKey = $this->setting->apikey; |
134 | 134 | $amount = $this->invoice->getAmount(); |
135 | - if ($this->settings->currency == 'T'){ //convert amount to rial, payment gateways need rial |
|
135 | + if ($this->settings->currency == 'T') { //convert amount to rial, payment gateways need rial |
|
136 | 136 | $amount = $amount * 10; |
137 | 137 | } |
138 | 138 | $verify_params = array('apiKey' => $apiKey, |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $error_message = $r['errorMessage']; |
145 | 145 | throw new InvalidPaymentException($error_message); |
146 | 146 | } else { //success |
147 | - $receipt = $this->createReceipt($data['referenceNumber']); |
|
147 | + $receipt = $this->createReceipt($data['referenceNumber']); |
|
148 | 148 | $receipt->detail([ |
149 | 149 | 'referenceNo' => $params['referenceNumber'], |
150 | 150 | 'rrn' => Request::input('rrn'), |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $token = $r['token']; |
96 | 96 | $this->invoice->transactionId($token); |
97 | 97 | return $this->invoice->getTransactionId(); |
98 | - }else{ |
|
98 | + } else{ |
|
99 | 99 | $error_message = $r['errorMessage']; |
100 | 100 | throw new PurchaseFailedException($error_message); |
101 | 101 | } |