mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Payfast
This commit is contained in:
parent
6a51bc258c
commit
45b4267916
@ -162,8 +162,8 @@ class Token
|
||||
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 ( ! empty( $this->payfast->company_gateway->getConfigField('passPhrase') ) && $sort_data_before_merge )
|
||||
$api_data['passphrase'] = $this->payfast->company_gateway->getConfigField('passPhrase');
|
||||
if ( ! empty( $this->payfast->company_gateway->getConfigField('passphrase') ) && $sort_data_before_merge )
|
||||
$api_data['passphrase'] = $this->payfast->company_gateway->getConfigField('passphrase');
|
||||
|
||||
if ( $sort_data_before_merge ) {
|
||||
ksort( $api_data );
|
||||
@ -186,7 +186,7 @@ class Token
|
||||
if ( $sort_data_before_merge ) {
|
||||
$parameter_string = rtrim( $parameter_string, '&' );
|
||||
} elseif ( ! empty( $this->pass_phrase ) ) {
|
||||
$parameter_string .= 'passphrase=' . urlencode( $this->payfast->company_gateway->getConfigField('passPhrase') );
|
||||
$parameter_string .= 'passphrase=' . urlencode( $this->payfast->company_gateway->getConfigField('passphrase') );
|
||||
} else {
|
||||
$parameter_string = rtrim( $parameter_string, '&' );
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ class PayFastPaymentDriver extends BaseDriver
|
||||
[
|
||||
'merchantId' => $this->company_gateway->getConfigField('merchantId'),
|
||||
'merchantKey' => $this->company_gateway->getConfigField('merchantKey'),
|
||||
'passPhrase' => $this->company_gateway->getConfigField('passPhrase'),
|
||||
'passPhrase' => $this->company_gateway->getConfigField('passphrase'),
|
||||
'testMode' => $this->company_gateway->getConfigField('testMode')
|
||||
]
|
||||
);
|
||||
@ -147,8 +147,8 @@ class PayFastPaymentDriver extends BaseDriver
|
||||
}
|
||||
}
|
||||
|
||||
if($this->company_gateway->getConfigField('passPhrase'))
|
||||
$fields['passphrase'] = $this->company_gateway->getConfigField('passPhrase');
|
||||
if($this->company_gateway->getConfigField('passphrase'))
|
||||
$fields['passphrase'] = $this->company_gateway->getConfigField('passphrase');
|
||||
|
||||
nlog(http_build_query($fields));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user