From 5256b53d794a08897ea43c14719c78febfb14836 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 15:41:32 +1000 Subject: [PATCH] Turning on token billing for PayFast --- app/PaymentDrivers/PayFast/Token.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index 2219e2e6c40a..e4dc700fea71 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -87,13 +87,11 @@ class Token 'amount' => $amount, 'item_name' => 'purchase', 'item_description' => ctrans('texts.invoices') . ': ' . collect($payment_hash->invoices())->pluck('invoice_number'), - 'm_payment_id' => $payment_hash->hash, + // 'm_payment_id' => $payment_hash->hash, ]; - //$header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body)) ); + $header['signature'] = md5( $this->generate_parameter_string(array_merge($header, $body)) ); - $header['signature'] = $this->payfast->generateSignature(array_merge($header, $body)); - $result = $this->send($header, $body, $cgt->token); nlog($result);