bootdesk/chat-sdk

WhatsAppWebhookVerifier
in package

Table of Contents

Properties

$appSecret  : string
$verifyToken  : string

Methods

__construct()  : mixed
handleVerificationChallenge()  : string|null
verifySignature()  : bool
verifyWebhookSignature()  : void

Properties

Methods

__construct()

public __construct(string $appSecret, string $verifyToken) : mixed
Parameters
$appSecret : string
$verifyToken : string

handleVerificationChallenge()

public handleVerificationChallenge(ServerRequestInterface $request) : string|null
Parameters
$request : ServerRequestInterface
Return values
string|null

verifySignature()

public verifySignature(string $body, string $signature) : bool
Parameters
$body : string
$signature : string
Return values
bool

verifyWebhookSignature()

public verifyWebhookSignature(ServerRequestInterface $request, string $body) : void
Parameters
$request : ServerRequestInterface
$body : string
On this page

Search results