Turning on token billing for PayFast

This commit is contained in:
David Bomba 2021-09-23 12:03:49 +10:00
parent 307dbdcb07
commit c9bb97f4d0
2 changed files with 3 additions and 3 deletions

View File

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

View File

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