diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 8259885369..0a812f1259 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') ] );