@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | return $validate; |
247 | - }catch (RequestException $exception){ |
|
247 | + } catch (RequestException $exception){ |
|
248 | 248 | return false; |
249 | 249 | } |
250 | 250 | } |
@@ -262,7 +262,9 @@ discard block |
||
262 | 262 | //for a parameter of 'trxref' |
263 | 263 | $transactionRef = $trxref ?: request()->query('trxref'); |
264 | 264 | |
265 | - if(!$transactionRef) throw new PaymentVerificationFailedException("Payment reference not provided"); |
|
265 | + if(!$transactionRef) { |
|
266 | + throw new PaymentVerificationFailedException("Payment reference not provided"); |
|
267 | + } |
|
266 | 268 | |
267 | 269 | $relativeUrl = "/transaction/verify/{$transactionRef}"; |
268 | 270 |