From b8697863a6417388cd2ed5e4febcbd3795527fe5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 Nov 2021 21:59:48 +1100 Subject: [PATCH] Return payment if it exists --- app/PaymentDrivers/BaseDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index bd29febe30..6c1460a9f8 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -226,7 +226,7 @@ class BaseDriver extends AbstractPaymentDriver $_payment = Payment::where('transaction_reference', $data['transaction_reference']) ->where('client_id', $this->client->id) - ->exists(); + ->first(); if($_payment) return $_payment;