final protected function validateAgainstSignature(array $bill, ?string $signatureKey = null, array $parameters = []): bool
    {
        if (\is_null($signatureKey)) {
            return true;
        }

        if (! isset($bill['x_signature'])) {
            return false;
        }

        $signature = new Signature($signatureKey, $parameters);

        if (! $signature->verify($bill, $bill['x_signature'])) {
            throw new FailedSignatureVerification();
        }

        return true;
    }
final protected function validateAgainstSignature(array $bill, ?string $signatureKey = null, array $parameters = []): bool
    {
        if (\is_null($signatureKey)) {
            return true;
        }

        if (! isset($bill['x_signature'])) {
            return false;
        }

        $signature = new Signature($signatureKey, $parameters);

        if (! $signature->verify($bill, $bill['x_signature'])) {
            throw new FailedSignatureVerification();
        }

        return true;
    }
final protected function validateAgainstSignature ( array $ bill , ? string $ signatureKey = null , array $ parameters = [ ] ) : bool { if ( \ is_null ( $ signatureKey ) ) { return true ; } if ( ! isset ( $ bill [ 'x_signature' ] ) ) { return false ; } $ signature = new Signature ( $ signatureKey , $ parameters ) ; if ( ! $ signature -> verify ( $ bill , $ bill [ 'x_signature' ] ) ) { throw new FailedSignatureVerification ( ) ; } return true ; }
Validate against x-signature.

@param  array  $bill
@param  string|null  $signatureKey
@param  array  $parameters

@throws \Billplz\Exceptions\FailedSignatureVerification

@return bool
Validate against x - signature .