Skip to main content

WebhookClient

Provides functionality for interacting with Bloock webhooks.

  • Full name: \Bloock\Client\WebhookClient

Properties

bridge

private $bridge

config

private $config

Methods

__construct

Creates a new WebhookClient with the provided configuration.

public __construct(\Bloock\ConfigData|null $config = null): mixed

Parameters:

ParameterTypeDescription
$config\Bloock\ConfigData|null

verifyWebhookSignature

Verifies the signature of a webhook payload using the provided parameters.

public verifyWebhookSignature(string $payload, string $header, string $secretKey, bool $enforceTolerance): bool

Parameters:

ParameterTypeDescription
$payloadstring
$headerstring
$secretKeystring
$enforceTolerancebool

Throws:



Automatically generated on 2024-04-02