CallbackSignature
in package
FinalYes
Table of Contents
Methods
- verify() : bool
- Verifies the X-Signature-SHA256 header of a callback request.
Methods
verify()
Verifies the X-Signature-SHA256 header of a callback request.
public
static verify(string $body, string $signature, string $secret) : bool
Pass the raw request body exactly as received. Verify before parsing and never re-serialize the JSON.
Parameters
- $body : string
- $signature : string
- $secret : string