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): nil result on small amount #2279

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Jul 11, 2024

Context

In some cases on small invoice amount, the Invoices::Payments::StripeCreateJob is raising a NoMethodError: undefined method raise_if_error!' for nil`

Description

This PR fixes this issue by ensuring that a result is returned by the Invoices::Payments::StripeCreateService

@vincent-pochet vincent-pochet self-assigned this Jul 11, 2024
@vincent-pochet vincent-pochet merged commit 0e5557c into main Jul 11, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-stripe-small-amount branch July 11, 2024 12:31
abdussamadbello pushed a commit to abdussamadbello/lago-api that referenced this pull request Aug 8, 2024
## Context

In some cases on small invoice amount, the
`Invoices::Payments::StripeCreateJob` is raising a `NoMethodError:
undefined method `raise_if_error!' for nil`

## Description

This PR fixes this issue by ensuring that a `result` is returned by the
`Invoices::Payments::StripeCreateService`
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.

4 participants