Skip to content

Commit

Permalink
fix: Ensure Consistent Return of result Object on Stripe Exceptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomiguelpinto authored Jul 8, 2024
1 parent 6849777 commit dc28133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/invoices/payments/stripe_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create

deliver_error_webhook(e)
update_invoice_payment_status(payment_status: :failed, deliver_webhook: false)
nil
result
rescue Stripe::RateLimitError, Stripe::APIConnectionError
raise # Let the auto-retry process do its own job
rescue Stripe::StripeError => e
Expand Down

0 comments on commit dc28133

Please sign in to comment.