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

Return Insufficient balance message on payment failure #93

Open
brh28 opened this issue Aug 21, 2024 · 0 comments
Open

Return Insufficient balance message on payment failure #93

brh28 opened this issue Aug 21, 2024 · 0 comments

Comments

@brh28
Copy link

brh28 commented Aug 21, 2024

In the case of a payment failure due to a lack of funds, we should display an insufficient balance message, rather than a generic error message.

This Honeycomb trace shows a sample Ibex response and Graphql response.

As shown in the trace, Ibex responds with a 400 and error message

{"error":"insufficient balance. Current Balance: 5.000000. Estimated Fee: 0.001109. invoice amount: 5.042164. account: 39c6e986-979b-40ab-9e7b-df18a9277a84"}

We want to detect these errors and map to a more user friendly message

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

No branches or pull requests

1 participant