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:
Parameter | Type | Description |
---|---|---|
$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:
Parameter | Type | Description |
---|---|---|
$payload | string | |
$header | string | |
$secretKey | string | |
$enforceTolerance | bool |
Throws:
Automatically generated on 2024-04-02