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); }