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
412487e793
commit
0edb026dad
@ -83,7 +83,7 @@ class Token
|
|||||||
'version' => 'v1',
|
'version' => 'v1',
|
||||||
];
|
];
|
||||||
|
|
||||||
$body['body'] = [
|
$body = [
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'item_name' => 'purchase',
|
'item_name' => 'purchase',
|
||||||
'item_description' => 'Purchase',
|
'item_description' => 'Purchase',
|
||||||
@ -142,7 +142,7 @@ class Token
|
|||||||
protected function generate_parameter_string( $api_data, $sort_data_before_merge = true, $skip_empty_values = true ) {
|
protected function generate_parameter_string( $api_data, $sort_data_before_merge = true, $skip_empty_values = true ) {
|
||||||
|
|
||||||
// if sorting is required the passphrase should be added in before sort.
|
// if sorting is required the passphrase should be added in before sort.
|
||||||
if ( ! empty( $this->pass_phrase ) && $sort_data_before_merge ) {
|
if ( ! empty( $this->payfast->company_gateway->getConfigField('passPhrase') ) && $sort_data_before_merge ) {
|
||||||
$api_data['passphrase'] = $this->payfast->company_gateway->getConfigField('passPhrase');
|
$api_data['passphrase'] = $this->payfast->company_gateway->getConfigField('passPhrase');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user