From 14902baf2873005d68da5106e8372c44a4e93faa Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 18 Oct 2017 20:14:35 +0300 Subject: [PATCH] Clarfiy paymen error failure --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 49acaf5738a1..8854363f8ab1 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -318,7 +318,7 @@ class BasePaymentDriver // parse the transaction reference if ($this->transactionReferenceParam) { - if (isset($this->purchaseResponse[$this->transactionReferenceParam])) { + if (! empty($this->purchaseResponse[$this->transactionReferenceParam])) { $ref = $this->purchaseResponse[$this->transactionReferenceParam]; } else { throw new Exception($response->getMessage() ?: trans('texts.payment_error'));