Turning on token billing for PayFast

This commit is contained in:
David Bomba 2021-09-23 12:09:12 +10:00
parent c9bb97f4d0
commit a183df8090
2 changed files with 5 additions and 5 deletions

View File

@ -87,12 +87,12 @@ class Token
'amount' => $amount,
'item_name' => 'purchase',
'm_payment_id' => $payment_hash->hash,
'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
// 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
// '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'));

View File

@ -134,7 +134,7 @@ class PayFastPaymentDriver extends BaseDriver
/**
* Transaction Details
*/
'amount', 'item_name', 'm_payment_id', 'item_description',
'm_payment_id', 'amount', 'item_name', 'item_description',
/**
* Custom return data
*/