From afd2c355f1dcd41e62d3994263761c64146a5296 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 14:10:23 +1000 Subject: [PATCH] Turning on token billing for PayFast --- app/PaymentDrivers/PayFast/Token.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 7b6d7d93fd..c8ae7c5d98 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -86,9 +86,8 @@ class Token $body = [ 'amount' => $amount, 'item_name' => 'purchase', - 'm_payment_id' => $payment_hash->hash, 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'), - 'passphrase' => $this->payfast->company_gateway->getConfigField('passphrase'), + 'm_payment_id' => $payment_hash->hash, ]; // $header['signature'] = $this->payfast->generateSignature(array_merge($header, $body)); @@ -171,6 +170,7 @@ class Token $parameter_string = rtrim( $parameter_string, '&' ); } + nlog($parameter_string); return $parameter_string; }