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 and abdussamadbello committed Aug 8, 2024
1 parent 3129eb2 commit 0a2b2ac
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 0a2b2ac

Please sign in to comment.