Versions in this module Expand all Collapse all v72 v72.201.0 Jun 24, 2022 v72.200.0 Jun 24, 2022 Changes in this version + const DefaultTolerance + var ErrInvalidHeader = errors.New("webhook has invalid Stripe-Signature header") + var ErrNoValidSignature = errors.New("webhook had no valid signature") + var ErrNotSigned = errors.New("webhook has no Stripe-Signature header") + var ErrTooOld = errors.New("timestamp wasn't within tolerance") + func ComputeSignature(t time.Time, payload []byte, secret string) []byte + func ConstructEvent(payload []byte, header string, secret string) (stripe.Event, error) + func ConstructEventIgnoringTolerance(payload []byte, header string, secret string) (stripe.Event, error) + func ConstructEventWithTolerance(payload []byte, header string, secret string, tolerance time.Duration) (stripe.Event, error) + func ValidatePayload(payload []byte, header string, secret string) error + func ValidatePayloadIgnoringTolerance(payload []byte, header string, secret string) error + func ValidatePayloadWithTolerance(payload []byte, header string, secret string, tolerance time.Duration) error Other modules containing this package github.com/timandy/go-stripe