Minor fixes for Payfast

This commit is contained in:
David Bomba 2021-07-10 16:26:06 +10:00
parent 94d7e58f30
commit fdd71166df

View File

@ -21,7 +21,6 @@ use App\PaymentDrivers\PayFast\Token;
use App\Utils\Traits\MakesHash;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use PayFastPayment;
class PayFastPaymentDriver extends BaseDriver
{
@ -44,13 +43,10 @@ class PayFastPaymentDriver extends BaseDriver
const SYSTEM_LOG_TYPE = SystemLog::TYPE_PAYFAST;
//developer resources
//https://sandbox.payfast.co.za/
public function gatewayTypes(): array
{
$types = [];
@ -73,7 +69,7 @@ class PayFastPaymentDriver extends BaseDriver
try{
$this->payfast = new PayFastPayment(
$this->payfast = new \PayFast\PayFastPayment(
[
'merchantId' => $this->company_gateway->getConfigField('merchantId'),
'merchantKey' => $this->company_gateway->getConfigField('merchantKey'),