1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

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 = [
'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,
'item_name' => 'purchase',
'm_payment_id' => $payment_hash->hash,
@ -91,8 +94,8 @@ class Token
// 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
];
// $header['signature'] = $this->payfast->generateSignature($body);
$header['signature'] = $this->genSig($body);
$header['signature'] = $this->payfast->generateSignature($body);
//$header['signature'] = $this->genSig($body);
nlog($this->payfast->company_gateway->getConfigField('merchantId'));