Helper/Hook.php
public function verifyWebhookSecret($payload, $hmac_header)
    {
        $signing_secret = $this->configHelper->getSigningSecret();
        $computed_hmac  = base64_encode(hash_hmac('sha256', $payload, $signing_secret, true));

        return $computed_hmac == $hmac_header;
    }
public function verifyWebhookSecret($payload, $hmac_header)
    {
        $signing_secret = $this->configHelper->getSigningSecret();
        $computed_hmac  = base64_encode(hash_hmac('sha256', $payload, $signing_secret, true));

        return $computed_hmac == $hmac_header;
    }
public function verifyWebhookSecret ( $ payload , $ hmac_header ) { $ signing_secret = $ this -> configHelper -> getSigningSecret ( ) ; $ computed_hmac = base64_encode ( hash_hmac ( 'sha256' , $ payload , $ signing_secret , true ) ) ; return $ computed_hmac == $ hmac_header ; }
Verifying Hook Request using pre-exchanged signing secret key.

@param string $payload
@param string $hmac_header

@return bool
Verifying Hook Request using pre - exchanged signing secret key .