1
0
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:
David Bomba 2021-09-23 14:10:23 +10:00
parent 175c8d7d8f
commit afd2c355f1

View File

@ -86,9 +86,8 @@ class Token
$body = [
'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'),
'm_payment_id' => $payment_hash->hash,
];
// $header['signature'] = $this->payfast->generateSignature(array_merge($header, $body));
@ -171,6 +170,7 @@ class Token
$parameter_string = rtrim( $parameter_string, '&' );
}
nlog($parameter_string);
return $parameter_string;
}