Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
verifyStripeSignature Source #
:: WebhookSecret | Your webhook secret |
-> ByteString | Value of the |
-> 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
VOk UTCTime | Signature verification successful, check the time against the current time and reject too old requests. |
VFailed | Signature verification failed. Check that your |
VInvalidSignature | Invalid signature. Verify that you are passing the raw contents of the |
Instances
Eq VerificationResult Source # | |
Defined in Stripe.Webhook.Verify (==) :: VerificationResult -> VerificationResult -> Bool # (/=) :: VerificationResult -> VerificationResult -> Bool # | |
Show VerificationResult Source # | |
Defined in Stripe.Webhook.Verify showsPrec :: Int -> VerificationResult -> ShowS # show :: VerificationResult -> String # showList :: [VerificationResult] -> ShowS # |