Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stripe): Handle authentication errors for checkout URL #2705

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Context

This PR fixes the handling of Stripe::AuthenticationError in PaymentProviderCustomers::StripeCheckoutUrlJob

Today this type of error leads to a dead job without notifications sent to the owner of the Strip account.

Since this type of Stripe error cannot be handled on Lago's side we simply have to send a webhook to the account owner and prevent the job from ending in the dead queue.

Description

This PR reuses the logic that was introduce in the PaymentProviderCustomers::StripeCreateJob and inner services to notify the owner and only log the error

@vincent-pochet vincent-pochet force-pushed the fix-handle-expired-stripe-api-key branch from c49f34d to 1837e04 Compare October 17, 2024 12:11
@vincent-pochet vincent-pochet changed the title fix(stripe): Silent authentication errors for checkout URL fix(stripe): Handle authentication errors for checkout URL Oct 17, 2024
@vincent-pochet vincent-pochet merged commit 178e15d into main Oct 18, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-handle-expired-stripe-api-key branch October 18, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants