Turning on token billing for PayFast
This commit is contained in:
parent
307dbdcb07
commit
c9bb97f4d0
2 changed files with 3 additions and 3 deletions
|
|
@ -87,11 +87,11 @@ class Token
|
|||
'amount' => $amount,
|
||||
'item_name' => 'purchase',
|
||||
'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'),
|
||||
'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);
|
||||
|
||||
nlog($this->payfast->company_gateway->getConfigField('merchantId'));
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class PayFastPaymentDriver extends BaseDriver
|
|||
/**
|
||||
* Transaction Details
|
||||
*/
|
||||
'm_payment_id', 'amount', 'item_name', 'item_description',
|
||||
'amount', 'item_name', 'm_payment_id', 'item_description',
|
||||
/**
|
||||
* Custom return data
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue