mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-07 14:35:23 +02:00
New onboarding, trials, Stripe integration (#2185)
* New onboarding, trials, Stripe integration * Fix tests * Lint fixes * Fix subscription endpoints
This commit is contained in:
parent
79b4a3769b
commit
a51c4d2cba
53 changed files with 847 additions and 372 deletions
9
app/jobs/stripe_event_handler_job.rb
Normal file
9
app/jobs/stripe_event_handler_job.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue