From 2869ee2590e66da62725773a14cb2bedd51d6777 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 18:09:06 +1000 Subject: [PATCH] PayFast API token billing --- app/PaymentDrivers/PayFast/Token.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 8259885369e0..0a812f125924 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -93,11 +93,10 @@ class Token // $header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body), false) ); // $result = $this->send($header, $body, $cgt->token); - $api = new \PayFast\PayFastPayment( + $api = new \PayFast\PayFastApi( [ 'merchantId' => $this->payfast->company_gateway->getConfigField('merchantId'), 'passPhrase' => $this->payfast->company_gateway->getConfigField('passPhrase'), - 'merchantKey' => $this->payfast->company_gateway->getConfigField('merchantKey'), 'testMode' => $this->payfast->company_gateway->getConfigField('testMode') ] );