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_account_application_authorized, #on_v1_account_application_deauthorized, #on_v1_account_external_account_created, #on_v1_account_external_account_deleted, #on_v1_account_external_account_updated, #on_v1_account_updated, #on_v1_application_fee_created, #on_v1_application_fee_refund_updated, #on_v1_application_fee_refunded, #on_v1_balance_available, #on_v1_balance_settings_updated, #on_v1_billing_alert_triggered, #on_v1_billing_credit_balance_transaction_created, #on_v1_billing_credit_grant_created, #on_v1_billing_credit_grant_updated, #on_v1_billing_meter_created, #on_v1_billing_meter_deactivated, #on_v1_billing_meter_error_report_triggered, #on_v1_billing_meter_no_meter_found, #on_v1_billing_meter_reactivated, #on_v1_billing_meter_updated, #on_v1_billing_portal_configuration_created, #on_v1_billing_portal_configuration_updated, #on_v1_billing_portal_session_created, #on_v1_capability_updated, #on_v1_cash_balance_funds_available, #on_v1_charge_captured, #on_v1_charge_dispute_closed, #on_v1_charge_dispute_created, #on_v1_charge_dispute_funds_reinstated, #on_v1_charge_dispute_funds_withdrawn, #on_v1_charge_dispute_updated, #on_v1_charge_expired, #on_v1_charge_failed, #on_v1_charge_pending, #on_v1_charge_refund_updated, #on_v1_charge_refunded, #on_v1_charge_succeeded, #on_v1_charge_updated, #on_v1_checkout_session_async_payment_failed, #on_v1_checkout_session_async_payment_succeeded, #on_v1_checkout_session_completed, #on_v1_checkout_session_expired, #on_v1_climate_order_canceled, #on_v1_climate_order_created, #on_v1_climate_order_delayed, #on_v1_climate_order_delivered, #on_v1_climate_order_product_substituted, #on_v1_climate_product_created, #on_v1_climate_product_pricing_updated, #on_v1_coupon_created, #on_v1_coupon_deleted, #on_v1_coupon_updated, #on_v1_credit_note_created, #on_v1_credit_note_updated, #on_v1_credit_note_voided, #on_v1_customer_cash_balance_transaction_created, #on_v1_customer_created, #on_v1_customer_deleted, #on_v1_customer_discount_created, #on_v1_customer_discount_deleted, #on_v1_customer_discount_updated, #on_v1_customer_subscription_created, #on_v1_customer_subscription_deleted, #on_v1_customer_subscription_paused, #on_v1_customer_subscription_pending_update_applied, #on_v1_customer_subscription_pending_update_expired, #on_v1_customer_subscription_resumed, #on_v1_customer_subscription_trial_will_end, #on_v1_customer_subscription_updated, #on_v1_customer_tax_id_created, #on_v1_customer_tax_id_deleted, #on_v1_customer_tax_id_updated, #on_v1_customer_updated, #on_v1_entitlements_active_entitlement_summary_updated, #on_v1_file_created, #on_v1_financial_connections_account_account_numbers_updated, #on_v1_financial_connections_account_created, #on_v1_financial_connections_account_deactivated, #on_v1_financial_connections_account_disconnected, #on_v1_financial_connections_account_expected_deactivation_date_updated, #on_v1_financial_connections_account_reactivated, #on_v1_financial_connections_account_refreshed_balance, #on_v1_financial_connections_account_refreshed_ownership, #on_v1_financial_connections_account_refreshed_transactions, #on_v1_financial_connections_account_supported_payment_method_types_updated, #on_v1_financial_connections_account_upcoming_account_number_expiry, #on_v1_financial_connections_account_upcoming_deactivation, #on_v1_identity_verification_session_canceled, #on_v1_identity_verification_session_created, #on_v1_identity_verification_session_processing, #on_v1_identity_verification_session_redacted, #on_v1_identity_verification_session_requires_input, #on_v1_identity_verification_session_verified, #on_v1_invoice_created, #on_v1_invoice_deleted, #on_v1_invoice_finalization_failed, #on_v1_invoice_finalized, #on_v1_invoice_marked_uncollectible, #on_v1_invoice_overdue, #on_v1_invoice_overpaid, #on_v1_invoice_paid, #on_v1_invoice_payment_action_required, #on_v1_invoice_payment_attempt_required, #on_v1_invoice_payment_failed, #on_v1_invoice_payment_paid, #on_v1_invoice_payment_succeeded, #on_v1_invoice_sent, #on_v1_invoice_upcoming, #on_v1_invoice_updated, #on_v1_invoice_voided, #on_v1_invoice_will_be_due, #on_v1_invoiceitem_created, #on_v1_invoiceitem_deleted, #on_v1_issuing_authorization_created, #on_v1_issuing_authorization_request, #on_v1_issuing_authorization_updated, #on_v1_issuing_card_created, #on_v1_issuing_card_updated, #on_v1_issuing_cardholder_created, #on_v1_issuing_cardholder_updated, #on_v1_issuing_dispute_closed, #on_v1_issuing_dispute_created, #on_v1_issuing_dispute_funds_reinstated, #on_v1_issuing_dispute_funds_rescinded, #on_v1_issuing_dispute_submitted, #on_v1_issuing_dispute_updated, #on_v1_issuing_personalization_design_activated, #on_v1_issuing_personalization_design_deactivated, #on_v1_issuing_personalization_design_rejected, #on_v1_issuing_personalization_design_updated, #on_v1_issuing_token_created, #on_v1_issuing_token_updated, #on_v1_issuing_transaction_created, #on_v1_issuing_transaction_purchase_details_receipt_updated, #on_v1_issuing_transaction_updated, #on_v1_mandate_updated, #on_v1_payment_intent_amount_capturable_updated, #on_v1_payment_intent_canceled, #on_v1_payment_intent_created, #on_v1_payment_intent_partially_funded, #on_v1_payment_intent_payment_failed, #on_v1_payment_intent_processing, #on_v1_payment_intent_requires_action, #on_v1_payment_intent_succeeded, #on_v1_payment_link_created, #on_v1_payment_link_updated, #on_v1_payment_method_attached, #on_v1_payment_method_automatically_updated, #on_v1_payment_method_detached, #on_v1_payment_method_updated, #on_v1_payout_canceled, #on_v1_payout_created, #on_v1_payout_failed, #on_v1_payout_paid, #on_v1_payout_reconciliation_completed, #on_v1_payout_updated, #on_v1_person_created, #on_v1_person_deleted, #on_v1_person_updated, #on_v1_plan_created, #on_v1_plan_deleted, #on_v1_plan_updated, #on_v1_price_created, #on_v1_price_deleted, #on_v1_price_updated, #on_v1_product_created, #on_v1_product_deleted, #on_v1_product_updated, #on_v1_promotion_code_created, #on_v1_promotion_code_updated, #on_v1_quote_accepted, #on_v1_quote_canceled, #on_v1_quote_created, #on_v1_quote_finalized, #on_v1_radar_early_fraud_warning_created, #on_v1_radar_early_fraud_warning_updated, #on_v1_refund_created, #on_v1_refund_failed, #on_v1_refund_updated, #on_v1_review_closed, #on_v1_review_opened, #on_v1_setup_intent_canceled, #on_v1_setup_intent_created, #on_v1_setup_intent_requires_action, #on_v1_setup_intent_setup_failed, #on_v1_setup_intent_succeeded, #on_v1_sigma_scheduled_query_run_created, #on_v1_source_canceled, #on_v1_source_chargeable, #on_v1_source_failed, #on_v1_source_refund_attributes_required, #on_v1_subscription_schedule_aborted, #on_v1_subscription_schedule_canceled, #on_v1_subscription_schedule_completed, #on_v1_subscription_schedule_created, #on_v1_subscription_schedule_expiring, #on_v1_subscription_schedule_released, #on_v1_subscription_schedule_updated, #on_v1_tax_rate_created, #on_v1_tax_rate_updated, #on_v1_tax_settings_updated, #on_v1_terminal_reader_action_failed, #on_v1_terminal_reader_action_succeeded, #on_v1_terminal_reader_action_updated, #on_v1_test_helpers_test_clock_advancing, #on_v1_test_helpers_test_clock_created, #on_v1_test_helpers_test_clock_deleted, #on_v1_test_helpers_test_clock_internal_failure, #on_v1_test_helpers_test_clock_ready, #on_v1_topup_canceled, #on_v1_topup_created, #on_v1_topup_failed, #on_v1_topup_reversed, #on_v1_topup_succeeded, #on_v1_transfer_created, #on_v1_transfer_reversed, #on_v1_transfer_updated, #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
1086 1087 1088 1089 1090 |
# File 'lib/stripe/stripe_event_notification_handler.rb', line 1086 def handle(webhook_body) @has_handled_events = true dispatch(@client.parse_event_notification_without_verification(webhook_body)) end |