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


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/WebhookSignature.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.