class Stripe::Webhook
- Stripe::Webhook
- Reference
- Object
Defined in:
stripe/methods/core/webhook/webhook.crConstant Summary
-
DEFAULT_TOLERANCE =
300
Class Method Summary
-
.construct_event(payload : String, sig_header : String, secret : String, tolerance : Int32 | Nil = DEFAULT_TOLERANCE)
Initializes an Event object from a JSON payload.
Class Method Detail
def self.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.