From cc4e3cdef3295b63a5deb2c20364154397b7b5c5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 10:37:00 +1000 Subject: [PATCH] Turning on token billing for PayFast --- app/PaymentDrivers/PayFast/Token.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 03df0e6058..a6b6bac5be 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -87,16 +87,13 @@ class Token 'amount' => $amount, 'item_name' => 'purchase', 'm_payment_id' => $payment_hash->hash, + 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'), + 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'), ]; // $header['signature'] = $this->genSig(array_merge($header, $body)); $header['signature'] = $this->genSig($body); - $body = array_merge($body,[ - 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'), - 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'), - ]); - nlog($this->payfast->company_gateway->getConfigField('merchantId')); $result = $this->send($header, $body, $cgt->token);