Minor fixes for Payfast

This commit is contained in:
David Bomba 2021-07-10 16:13:20 +10:00
parent fd136a93ab
commit f5c927db1a

View File

@ -85,7 +85,7 @@ class PayFastPaymentDriver extends BaseDriver
} catch(Exception $e) { } catch(Exception $e) {
echo '##PAYFAST## There was an exception: '.$e->getMessage(); echo '##PAYFAST## There was an exception: '.$e->getMessage();
} }
return $this; return $this;
@ -125,6 +125,8 @@ class PayFastPaymentDriver extends BaseDriver
public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash) public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash)
{ {
$this->init();
return (new Token($this))->tokenBilling($cgt, $payment_hash); return (new Token($this))->tokenBilling($cgt, $payment_hash);
} }