From a1b19b46d61647313bf72427c76a2e2eb1ae5f82 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 13:14:41 +1000 Subject: [PATCH] Turning on token billing for PayFast --- app/PaymentDrivers/PayFast/Token.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 6110a2e14b..aacdde7bfe 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'));