diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index dcfcd92d04ee..43208c58dd36 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -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, '&' ); } diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index 6ffedfe25b0a..591c6d347741 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -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));