Turning on token billing for PayFast

This commit is contained in:
David Bomba 2021-09-23 10:33:11 +10:00
parent 6fa87affdb
commit 63d4e1f153

View File

@ -87,13 +87,13 @@ class Token
'amount' => $amount,
'item_name' => 'purchase',
'm_payment_id' => $payment_hash->hash,
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
];
// $header['signature'] = $this->genSig(array_merge($header, $body));
$header['signature'] = $this->genSig($body);
$body = array_merge($body,[
'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'),
'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'),
]);