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'));