1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00
Maybe/app/jobs/stripe_event_handler_job.rb

10 lines
268 B
Ruby
Raw Normal View History

class StripeEventHandlerJob < ApplicationJob
queue_as :default
def perform(event_id)
stripe_provider = Provider::Registry.get_provider(:stripe)
Rails.logger.info "Processing Stripe event: #{event_id}"
stripe_provider.process_event(event_id)
end
end