WebhookSignature::verifyHeader( string $payload, string $header, string $secret, int $tolerance = null )
Verifies the signature header sent by Stripe. Throws an Exception\SignatureVerificationException exception if the verification fails for any reason.
Description Description
Parameters Parameters
- $payload
-
(Required) the payload sent by Stripe
- $header
-
(Required) the contents of the signature header sent by Stripe
- $secret
-
(Required) secret used to generate the signature
- $tolerance
-
(Optional) maximum difference allowed between the header's timestamp and the current time
Default value: null
Return Return
(bool)
Source Source
File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/WebhookSignature.php