mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Turning on token billing for PayFast
This commit is contained in:
parent
3fafc46ca7
commit
a2d437deae
@ -170,8 +170,8 @@ class Token
|
||||
$parameter_string = rtrim( $parameter_string, '&' );
|
||||
}
|
||||
|
||||
nlog($parameter_string);
|
||||
return $parameter_string;
|
||||
return md5( $parameter_string, false, false );
|
||||
|
||||
}
|
||||
|
||||
private function genSig($data)
|
||||
@ -198,7 +198,9 @@ class Token
|
||||
]);
|
||||
|
||||
try {
|
||||
$response = $client->post("https://api.payfast.co.za/subscriptions/{$token}/adhoc?testing=true",['query' => $body]);
|
||||
$response = $client->post("https://api.payfast.co.za/subscriptions/{$token}/adhoc?testing=true",[
|
||||
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false
|
||||
]);
|
||||
|
||||
return json_decode($response->getBody(),true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user