Class: SpreeStripe::WebhookHandlers::PaymentIntentAmountCapturableUpdated
- Inherits:
-
Base
- Object
- Base
- SpreeStripe::WebhookHandlers::PaymentIntentAmountCapturableUpdated
- Defined in:
- app/services/spree_stripe/webhook_handlers/payment_intent_amount_capturable_updated.rb
Overview
Fires when a manual-capture PaymentIntent transitions to ‘requires_capture` (i.e. the funds have been authorized but not yet captured). For new PaymentSession-based flows we hand off to CompleteOrderFromSessionJob, which authorizes the Spree::Payment and completes the order.
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
8 9 10 |
# File 'app/services/spree_stripe/webhook_handlers/payment_intent_amount_capturable_updated.rb', line 8 def call(event) enqueue_complete_order_from_session(event.data.object[:id]) end |