Turning on token billing for PayFast

This commit is contained in:
David Bomba 2021-09-23 13:14:41 +10:00
parent a183df8090
commit a1b19b46d6

View File

@ -84,6 +84,9 @@ class Token
]; ];
$body = [ $body = [
'merchant_id' => $this->payfast->company_gateway->getConfigField('merchantId'),
'merchant_key' => $this->company_gateway->getConfigField('merchantKey'),
'passphrase' => $this->payfast->cpayfast->ompany_gateway->getConfigField('passPhrase'),
'amount' => $amount, 'amount' => $amount,
'item_name' => 'purchase', 'item_name' => 'purchase',
'm_payment_id' => $payment_hash->hash, 'm_payment_id' => $payment_hash->hash,
@ -91,8 +94,8 @@ class Token
// 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'), // 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
]; ];
// $header['signature'] = $this->payfast->generateSignature($body); $header['signature'] = $this->payfast->generateSignature($body);
$header['signature'] = $this->genSig($body); //$header['signature'] = $this->genSig($body);
nlog($this->payfast->company_gateway->getConfigField('merchantId')); nlog($this->payfast->company_gateway->getConfigField('merchantId'));