1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Turning on token billing for PayFast

This commit is contained in:
David Bomba 2021-09-23 14:16:36 +10:00
parent afd2c355f1
commit 3fafc46ca7

View File

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