-
Notifications
You must be signed in to change notification settings - Fork 64
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
Ability to test bank account debit transitions #275
Comments
+1 @shlomozippel How are you testing the status during creation? I've only received the "succeeded" status on a bank account debit. |
There are test bank accounts that automatically succeed, fail, or remain pending: https://docs.balancedpayments.com/current/overview.html?language=bash#test-bank-account-numbers |
In my testing, the bank accounts always showed paid. They would never "transistion" from pending to failed or whatever. I have an idea for resolving this, and it involves a mod to the dashboard where I am allowed to set the state/status of any transaction and have my webhook(s) fired. |
👍 on this issue. I cannot test bank account debits. e.g.
This is impacting the ability of the front end team to test operations on transactions in certain statuses. e.g. balanced/balanced-dashboard#1186 |
I believe that the issue is that we're not configuring the |
That would be amazing because this has been broken for an embarrassing amount of time. 😬 |
+1 Any guess when this will be fixed? In the meantime, can you guys put a note on your docs. I spent a frustrating amount of time trying to figure out if I was doing something wrong. I couldn't figure out why my tests started failing even though I hadn't changed them when I deleted my vcr cassettes. |
The fix should be coming soon, although I don't have any specific timeline yet. Github issues are where we note problems, not the documentation. Whenever you're having trouble, you should check the corresponding repository to see if it's a known issue. If one exists, please comment with a +1 and add an applicable code example. If you don't see one, jump in IRC and talk with technical support about the problem. If it's not an issue that's immediately solvable, support will create an issue in the appropriate repository or ask you to do so with information from the discussion. |
@remear Thanks for the reply. I ended up getting an answer on IRC. You guys have to set policies that make the sense for you, but for me as an end user a note in the docs that acknowledges this functionality isn't working properly would have gone a long way. Especially since my integration with Balanced is going to be dealing with money, I want to be sure that I have good test coverage and this bug makes that more difficult. |
Any guestimate on when this will be fixed? |
I believe this was fixed recently -- @matthewfl ? |
the transactions aren't going to transition in an async way as this issue is requesting. The issue with the bank accounts not working as reported has been fixed. |
Just tried running tests again. It looks like they're passing. But I had to run them a couple times because I was getting: Faraday::TimeoutError:
Net::ReadTimeout Faraday::TimeoutError:
execution expired Balanced::InternalServerError:
Balanced::InternalServerError |
Confirmed, the status changes to |
Re-opening. This issue covers asynchronous testing. |
They are separate issues: This one covers how to asynchronously test transaction state changes. |
+1 - Just came upon this limitation when trying to model passing along the $15 Chargeback fee and trying to understand how the system reacts when that $15 debit is rejected due to low funds. Here is the message I sent to support describing it as easily as possible: "I want to be able to simulate a bank_account that has zero funds in it so that when I tell Balanced API to debit that account it responds with failure state. I do not see any way to manipulate bank_account balances to $0 in the API or using the testing numbers for bank accounts. Thanks!" |
At the moment we are able to test debits that get a status during creation (paid, failed, pending) using the test bank account numbers. Unfortunately, we have no way to test an async transition from pending to paid/failed. Ideally we'd like to be able to trigger a status change for a pending test debit and consume an event for that change.
The text was updated successfully, but these errors were encountered: