From f5c927db1aa6bcfd93fc0145c0208a089a9430e1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 10 Jul 2021 16:13:20 +1000 Subject: [PATCH] Minor fixes for Payfast --- app/PaymentDrivers/PayFastPaymentDriver.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index 4e855c909344..65d0c030d7e2 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -85,7 +85,7 @@ class PayFastPaymentDriver extends BaseDriver } catch(Exception $e) { echo '##PAYFAST## There was an exception: '.$e->getMessage(); - + } return $this; @@ -125,6 +125,8 @@ class PayFastPaymentDriver extends BaseDriver public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash) { + $this->init(); + return (new Token($this))->tokenBilling($cgt, $payment_hash); }