mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Turning on token billing for PayFast
This commit is contained in:
parent
175c8d7d8f
commit
afd2c355f1
@ -86,9 +86,8 @@ class Token
|
|||||||
$body = [
|
$body = [
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'item_name' => 'purchase',
|
'item_name' => 'purchase',
|
||||||
'm_payment_id' => $payment_hash->hash,
|
|
||||||
'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'),
|
'm_payment_id' => $payment_hash->hash,
|
||||||
];
|
];
|
||||||
|
|
||||||
// $header['signature'] = $this->payfast->generateSignature(array_merge($header, $body));
|
// $header['signature'] = $this->payfast->generateSignature(array_merge($header, $body));
|
||||||
@ -171,6 +170,7 @@ class Token
|
|||||||
$parameter_string = rtrim( $parameter_string, '&' );
|
$parameter_string = rtrim( $parameter_string, '&' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nlog($parameter_string);
|
||||||
return $parameter_string;
|
return $parameter_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user