From 3fafc46ca797b90711eed17b7e8f4eb98ea4f91f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 23 Sep 2021 14:16:36 +1000 Subject: [PATCH] Turning on token billing for PayFast --- app/PaymentDrivers/PayFast/Token.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/PaymentDrivers/PayFast/Token.php b/app/PaymentDrivers/PayFast/Token.php index c8ae7c5d98a8..fe31a39eb757 100644 --- a/app/PaymentDrivers/PayFast/Token.php +++ b/app/PaymentDrivers/PayFast/Token.php @@ -198,9 +198,7 @@ class Token ]); try { - $response = $client->post("https://api.payfast.co.za/subscriptions/{$token}/adhoc?testing=true",[ - RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false - ]); + $response = $client->post("https://api.payfast.co.za/subscriptions/{$token}/adhoc?testing=true",['query' => $body]); return json_decode($response->getBody(),true); }