From e1e7a3ffc82016d1da79552ffc114442cd4b3f25 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 5 Jul 2021 23:04:17 +1000 Subject: [PATCH] Payment response --- app/PaymentDrivers/PayFastPaymentDriver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index 058d4113291b..1ba03887ff2a 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -204,7 +204,8 @@ class PayFastPaymentDriver extends BaseDriver default: - $payment_hash = PaymentHash::whereRaw('BINARY `hash`= ?', [$hash])->first(); + $payment_hash = PaymentHash::whereRaw('BINARY `hash`= ?', [$data['m_payment_id']])->first(); + return $this->setPaymentMethod(GatewayType::CREDIT_CARD) ->setPaymentHash($payment_hash) ->processPaymentResponse($request);