diff --git a/README.md b/README.md index e365bb3..9cb0710 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,27 @@ $connector_shared_secret = "your_generated_connector_shared_secret"; $client = new Client($api_user, $api_password, $connector_api_key, $connector_shared_secret); ``` +If you want to use `sha512` as hash algorithm for the security signature you can instantiate the client like this: + +```php +username = $username; $this->setPassword($password); $this->apiKey = $apiKey; $this->sharedSecret = $sharedSecret; $this->language = $language; $this->testMode = $testMode; + $this->newAlgo = $newAlgo; } /** @@ -694,7 +701,7 @@ public function signAndSendJson($jsonBody, $url, $username, $password, $apiKey, $curl = new CurlClient(); $curl ->setCustomHeaders($this->customRequestHeaders) ->setCustomCurlOptions($this->customCurlOptions); - $curl->signJson($sharedSecret, $url, $jsonBody, $type) + $curl->signJson($sharedSecret, $url, $jsonBody, $type, false, $this->newAlgo) ->setAuthentication($username, $password); if($get){