private function verifyResponseSignature(Response
$response): void
{ $signatureHeaderName = 'x-shopware-signature';
$signature =
$response->
getHeader($signatureHeaderName);
if (!\
is_string($signature)) { throw new RuntimeException(sprintf('Signature not found in header "%s"',
$signatureHeaderName));
} if (!
$this->openSSLVerifier->
isSystemSupported()) { return;
} if ($this->openSSLVerifier->
isValid($response->
getBody(),
$signature)) { return;
} throw new RuntimeException('Signature not valid'
);
}}