diff --git a/src/Pay/Validator.php b/src/Pay/Validator.php index 93d60f4e6..5beb30735 100644 --- a/src/Pay/Validator.php +++ b/src/Pay/Validator.php @@ -62,7 +62,7 @@ public function validate(MessageInterface $message): void base64_decode($signature), strval($publicKey), OPENSSL_ALGO_SHA256 - ) === false) { + ) !== 1) { throw new InvalidSignatureException('Invalid Signature'); } }