diff --git a/src/Api/ApiClient.php b/src/Api/ApiClient.php index 2d6560a..51005d6 100644 --- a/src/Api/ApiClient.php +++ b/src/Api/ApiClient.php @@ -79,7 +79,7 @@ public function sendRequest( // Generate the timestamp in the specified format and ensure it's in GMT/UTC $timestamp = gmdate('Y-m-d\TH:i:s'); $authKey = $this->generateAuthHmac($timestamp, $this->apiSecurityKey); - $hashedPassword = $this->generateAuthHmac($this->apiPassword, $authKey); + $hashedPassword = $this->generateAuthHmac(hash('sha256', $this->apiPassword), $authKey); // Add authentication parameters to the request data. $data = array_merge([