Stripe::Webhook
Inherits JSON::Serializable < Stripe::Resource < Struct < Value < Object
Constants
DEFAULT_TOLERANCE = 5.minutes
Constructors
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Class methods
from_request(request, webhook_secret, tolerance = DEFAULT_TOLERANCE)
Sourceraw_from_request(request, webhook_secret, body : String, tolerance = DEFAULT_TOLERANCE) : String | Nil
Sourceraw_from_request(request, webhook_secret, tolerance = DEFAULT_TOLERANCE)
SourceInstance methods
livemode?
Returns true if this was sent from your live Stripe environment, false if it was from a test or sandbox environment.
request
Sourcetype
The type of webhook, indicating the Crystal type — for example, the value "customer.created" here indicates that the event will be an instance of Stripe::Webhook::Customer::Created.
Macros
enable_customer_cash_balance_transaction
Allow deserialization of customer_cash_balance_transaction.* events
enable_issuing_personalization_design
Allow deserialization of issuing_personalization_design.* events
handle(types)
Sourcehandle_all
Source