Class: Stripe::StripeEventNotificationHandlerWithoutVerification
- Inherits:
-
StripeEventNotificationHandlerBase
- Object
- StripeEventNotificationHandlerBase
- Stripe::StripeEventNotificationHandlerWithoutVerification
- Defined in:
- lib/stripe/stripe_event_notification_handler.rb
Overview
A variant of StripeEventNotificationHandler that parses events without verifying webhook signatures. Intended for pre-authenticated channels like AWS EventBridge, Azure Event Grid, or your own pre-authenticated queuing system.
Prefer StripeEventNotificationHandler#without_verification() or client.notification_handler_without_verification() instead of constructing it directly.
Instance Method Summary collapse
Methods inherited from StripeEventNotificationHandlerBase
#initialize, #on_v1_billing_meter_error_report_triggered, #on_v1_billing_meter_no_meter_found, #on_v2_commerce_product_catalog_imports_failed, #on_v2_commerce_product_catalog_imports_processing, #on_v2_commerce_product_catalog_imports_succeeded, #on_v2_commerce_product_catalog_imports_succeeded_with_errors, #on_v2_core_account_closed, #on_v2_core_account_created, #on_v2_core_account_including_configuration_customer_capability_status_updated, #on_v2_core_account_including_configuration_customer_updated, #on_v2_core_account_including_configuration_merchant_capability_status_updated, #on_v2_core_account_including_configuration_merchant_updated, #on_v2_core_account_including_configuration_recipient_capability_status_updated, #on_v2_core_account_including_configuration_recipient_updated, #on_v2_core_account_including_defaults_updated, #on_v2_core_account_including_future_requirements_updated, #on_v2_core_account_including_identity_updated, #on_v2_core_account_including_requirements_updated, #on_v2_core_account_link_returned, #on_v2_core_account_person_created, #on_v2_core_account_person_deleted, #on_v2_core_account_person_updated, #on_v2_core_account_updated, #on_v2_core_event_destination_ping, #pre_handle, #registered_event_types
Constructor Details
This class inherits a constructor from Stripe::StripeEventNotificationHandlerBase
Instance Method Details
#handle(webhook_body) ⇒ Object
222 223 224 225 226 |
# File 'lib/stripe/stripe_event_notification_handler.rb', line 222 def handle(webhook_body) @has_handled_events = true dispatch(@client.parse_event_notification_without_verification(webhook_body)) end |