public function validateResponseHash(Response $response) { $responseParams = $response->getResponseParams(); if ($this->computeHash($responseParams) !== $response->getHash()) { throw new ClientException('Response HASH mismatch'); } }