@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Bind to service container. |
| 26 | 26 | */ |
| 27 | - $this->app->bind('shetabit-payment', function () { |
|
| 27 | + $this->app->bind('shetabit-payment', function() { |
|
| 28 | 28 | return new PaymentManager(config('payment')); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | */ |
| 100 | 100 | public function pay() |
| 101 | 101 | { |
| 102 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
| 102 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
| 103 | 103 | |
| 104 | 104 | // use sandbox url if we are in sandbox mode |
| 105 | 105 | if (!empty($this->settings->sandbox)) { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | */ |
| 100 | 100 | public function pay() |
| 101 | 101 | { |
| 102 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
| 102 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
| 103 | 103 | |
| 104 | 104 | // use sandbox url if we are in sandbox mode |
| 105 | 105 | if (!empty($this->settings->sandbox)) { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | */ |
| 100 | 100 | public function pay() |
| 101 | 101 | { |
| 102 | - $apiUrl = $this->settings->apiPaymentUrl; |
|
| 102 | + $apiUrl = $this->settings->apiPaymentUrl; |
|
| 103 | 103 | |
| 104 | 104 | // use sandbox url if we are in sandbox mode |
| 105 | 105 | if (!empty($this->settings->sandbox)) { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | $body = json_decode($response->getBody()->getContents(), true); |
| 73 | 73 | |
| 74 | - if (empty($body['code']) || $body['code'] != -1 ) { |
|
| 74 | + if (empty($body['code']) || $body['code'] != -1) { |
|
| 75 | 75 | // some error has happened |
| 76 | 76 | } else { |
| 77 | 77 | $this->invoice->transactionId($body['trans_id']); |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | $response = json_decode($client->verify($data)); |
| 130 | 130 | |
| 131 | 131 | if ($response->Code != 100) { |
| 132 | - $this->notVerified( $transaction->message ?? 'payment failed'); |
|
| 132 | + $this->notVerified($transaction->message ?? 'payment failed'); |
|
| 133 | 133 | } else { |
| 134 | 134 | //"Success Payment with reference: $response->Reference and message: $transaction->message"; |
| 135 | 135 | } |