Fixes for base driver

This commit is contained in:
David Bomba 2021-07-05 13:56:38 +10:00
parent 1ca4eaba7b
commit c19d088bd9
2 changed files with 3 additions and 2 deletions

View File

@ -92,12 +92,12 @@ class CreditCard
'notify_url' => $this->payfast->genericWebhookUrl(),
'amount' => 5,
'item_name' => 'pre-auth',
'item_description' => 'Pre authorization',
'subscription_type' => 2,
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
];
$data['signature'] = $this->payfast->generateSignature($data);
nlog($data['signature']);
$data['gateway'] = $this->payfast;
$data['payment_endpoint_url'] = $this->payfast->endpointUrl();

View File

@ -136,6 +136,7 @@ class PayFastPaymentDriver extends BaseDriver
if( $passPhrase !== null ) {
$getString .= '&passphrase='. urlencode( trim( $passPhrase ) );
}
nlog($getString);
return md5( $getString );
}