diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 6110a2e14bb2..aacdde7bfe5b 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -84,6 +84,9 @@ class Token ]; $body = [ + 'merchant_id' => $this->payfast->company_gateway->getConfigField('merchantId'), + 'merchant_key' => $this->company_gateway->getConfigField('merchantKey'), + 'passphrase' => $this->payfast->cpayfast->ompany_gateway->getConfigField('passPhrase'), 'amount' => $amount, 'item_name' => 'purchase', 'm_payment_id' => $payment_hash->hash, @@ -91,8 +94,8 @@ class Token // 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'), ]; - // $header['signature'] = $this->payfast->generateSignature($body); - $header['signature'] = $this->genSig($body); + $header['signature'] = $this->payfast->generateSignature($body); + //$header['signature'] = $this->genSig($body); nlog($this->payfast->company_gateway->getConfigField('merchantId'));