Stripe::Webhook
Inherits Reference / Object
Constants
DEFAULT_TOLERANCE = 300
Class methods
construct_event(payload : String, sig_header : String, secret : String, tolerance : Int32 | Nil = DEFAULT_TOLERANCE)
Initializes an Event object from a JSON payload.
This may raise JSON::SerializableError if the payload is not valid JSON, or SignatureVerificationError if the signature verification fails.