| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Stripe.Webhook.Verify
Synopsis
Documentation
verifyStripeSignature Source #
Arguments
| :: 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
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 |
| VInvalidSignature | Invalid signature. Verify that you are passing the raw contents of the |
Instances
| Eq VerificationResult Source # | |
Defined in Stripe.Webhook.Verify Methods (==) :: VerificationResult -> VerificationResult -> Bool # (/=) :: VerificationResult -> VerificationResult -> Bool # | |
| Show VerificationResult Source # | |
Defined in Stripe.Webhook.Verify Methods showsPrec :: Int -> VerificationResult -> ShowS # show :: VerificationResult -> String # showList :: [VerificationResult] -> ShowS # | |