stripe-hs-0.3.0.0: Unofficial Stripe client
Safe HaskellNone
LanguageHaskell2010

Stripe.Webhook.Verify

Synopsis

Documentation

verifyStripeSignature Source #

Arguments

:: WebhookSecret

Your webhook secret

-> ByteString

Value of the stripe-signature header

-> ByteString

Raw request body received from Stripe

-> VerificationResult 

Verify the stripe-signature header

type WebhookSecret = ByteString Source #

Your webhook secret, can be obtained from the Stripe dashboard. Format: whsec_redacted

data VerificationResult Source #

Output of the webhook signature verification

Constructors

VOk UTCTime

Signature verification successful, check the time against the current time and reject too old requests.

VFailed

Signature verification failed. Check that your WebhookSecret is correct.

VInvalidSignature

Invalid signature. Verify that you are passing the raw contents of the stripe-signature header.