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:
parent
63d4e1f153
commit
cc4e3cdef3
@ -87,16 +87,13 @@ 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'),
|
||||
];
|
||||
|
||||
// $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'),
|
||||
]);
|
||||
|
||||
nlog($this->payfast->company_gateway->getConfigField('merchantId'));
|
||||
|
||||
$result = $this->send($header, $body, $cgt->token);
|
||||
|
Loading…
Reference in New Issue
Block a user