diff --git a/src/Handlers/HMAC/Validator.php b/src/Handlers/HMAC/Validator.php index 92560cb..b3efd00 100644 --- a/src/Handlers/HMAC/Validator.php +++ b/src/Handlers/HMAC/Validator.php @@ -49,7 +49,7 @@ class Validator extends Hmac /** * @var string */ - protected string $hash; + protected string $hash = ''; /** * @param Config $config @@ -102,4 +102,12 @@ public function validateOrFail(string $header, string $uri, string $method, $dat throw new BuckarooException($this->config->getLogger(), "HMAC validation failed."); } + + /** + * @return string + */ + public function getHash(): string + { + return $this->hash; + } }