Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Failed ACH transfers aren't reflected in user balance #1811

Closed
bruceadams opened this issue Jan 1, 2014 · 40 comments
Closed

Failed ACH transfers aren't reflected in user balance #1811

bruceadams opened this issue Jan 1, 2014 · 40 comments

Comments

@bruceadams
Copy link
Contributor

When payday initiates an ACH transfer for a user's balance, that user's balance is immediately reduced by the amount of the transfer. The problem come on the rare occasions where the ACH fails. The only notification we get (that I know about) is an email from Balanced about ACH failures. We need to restore funds to the user's account when the transfer did not, in fact, occur.

@chadwhitacre
Copy link
Contributor

Possible +1 from @gulopine on Twitter.

@gulopine
Copy link

I hadn't planned on commenting on this, but yes, it would be nice to see the reality reflected in Gittip, so that at least there's an explanation. Crediting the account would be better still, but even just having an explanation would be better than having no idea what happened or who to contact.

@bruceadams
Copy link
Contributor Author

Oh, and another problem with this is the email we get from Balanced (in the Gittip support system) requires logging into the Balanced to figure out which Gittip user the failure applied to.

cc: @pjf

@chadwhitacre
Copy link
Contributor

@bruceadams I believe Balanced has a webhooks implementation. Can you (or someone else) find out if they have a hook for this use case? If we can get a POST from them to an endpoint back on www.gittip.com, then we stand a chance of being able to automate the correction to the user's balance in Gittip.

@chadwhitacre
Copy link
Contributor

@bruceadams As I believe you've noticed, the emails we get from Balanced for outstanding failed credits contain bad links (ticketed as balanced/balanced-dashboard#951). I've figured out steps to go from Balanced's email to a useful page on their dashboard:

  1. Copy and paste the reference number for the transaction in question (this is the link text for the link in the email—don't click on it, highlight and copy it).
  2. Go to https://dashboard.balancedpayments.com/.
  3. Paste the transaction id into the search box at the very top of the dashboard. It should pop up a link to the transaction.

As you mention, this requires access to Balanced, something that you and @clone1018 and @pjf now have.

@seanlinsley
Copy link
Contributor

https://docs.balancedpayments.com/1.1/api/callbacks/

Callbacks are a means of registering to receive payloads of information to a specific URL of your choice. You may create multiple callbacks. Events will be sent to each callback URL. In the event that a 20x response is not received when the payload is sent to the callback URL, the callback will be retried up to 10 times with an initial retry delay of 10 minutes which will increase exponentially with each failure for the next 7 days.

@bruceadams
Copy link
Contributor Author

How do I get access into Balanced? I am not aware of having credentials for Balanced.

@bruceadams
Copy link
Contributor Author

@clone1018 helped me through it. I can get to the Balanced dashboard now. 💃

@bruceadams
Copy link
Contributor Author

I've successfully handled the recent Balanced - Outstanding failed credits emails to Support. We have one Gittip user that has had many failures throughout the life of their account. The first failure we saw was December 5, 2013. What I find very surprising is that a few transactions (a Gittip deposit to their bank account) appear to have gone through successfully. How is that possible? Can we ask Balanced to look deeper into the history on that account? How do we do that in a privacy preserving way? (I do not think it is appropriate to name the Gittip user in a public forum.)

@chadwhitacre
Copy link
Contributor

Can we ask Balanced to look deeper into the history on that account? How do we do that in a privacy preserving way?

Email [email protected]? Maybe if you initiate that email from inside Freshdesk we can manage the conversation there?

@chadwhitacre
Copy link
Contributor

These continue to accumulate. I'm collecting them on FD373.

@chadwhitacre
Copy link
Contributor

@cczona Picking up over here from #2085 (comment).

@chadwhitacre
Copy link
Contributor

@cczona Looking back through the emails from Balanced mentioned above on this ticket, I am seeing you among the failed payouts.

@chadwhitacre
Copy link
Contributor

@cczona Ditto CallbackWomen.

@cczona
Copy link

cczona commented Jun 25, 2014

Okay, thanks. How do I proceed? I don't have a Balanced account, though am fine with opening one if that solves a problem.

@Changaco Changaco mentioned this issue Jun 25, 2014
12 tasks
@chadwhitacre
Copy link
Contributor

@cczona Since Gittip uses Balanced as it's payment processor, we end up creating an implicit Balanced account for you when you enter financial details. Here's the message we got from Balanced on February 18:

Greetings,

The bank has notified us that the tokenization for bank account [redacted] is no longer valid. In response, we have marked this bank account as invalid. The reason given for this is:

Incorrect DFI Account number.

The bank account may be found at: [redacted]

Please have your customer update their bank account information before attempting to debit or credit them again.

Thanks,
Balanced

@chadwhitacre
Copy link
Contributor

@cczona So I guess let's have you re-enter your bank account details? Sounds like @bruceadams has looked at your case and perhaps double-checked that we haven't corrupted your balance. I'll triple-check ...

@Changaco
Copy link
Contributor

I didn't know about this issue, or maybe I just forgot, anyway I've now added it to the list of bugs that the payday rewrite should fix (#2508).

@chadwhitacre
Copy link
Contributor

@Changaco Cool, thank you. Isn't the action item here an endpoint for a Balanced webhook? That's out of band for payday itself, right?

@chadwhitacre
Copy link
Contributor

@cczona Here's where you can re-enter your bank account details: https://www.gittip.com/bank-account.html.

@cczona
Copy link

cczona commented Jun 25, 2014

Both accounts continued to make transfers between Feb 18th through May 15th. So the error message is flawed.

@cczona
Copy link

cczona commented Jun 25, 2014

I used that URL last Thursday to add (back) the banking info for CallbackWomen's gittip account.

The cczona gittip account shows that banking is still in place, but I'll go ahead and re-do.

@chadwhitacre
Copy link
Contributor

Both accounts continued to make transfers between Feb 18th through May 15th. So the error message is flawed.

@cczona Good point. Let's look into that ...

@chadwhitacre
Copy link
Contributor

I'll go ahead and re-do.

Thanks. :-)

@Changaco
Copy link
Contributor

@whit537 Possibly, but #2508 is where I have my checklist of payday-related bugs to fix, so might as well add it there to make sure I don't forget.

@chadwhitacre
Copy link
Contributor

@Changaco Fair enough.

@chadwhitacre
Copy link
Contributor

I used that URL last Thursday to add (back) the banking info for CallbackWomen's gittip account.

@cczona Depending on what time you added that on Thursday we may not have paid out to you during the payday run that day. I'm seeing the same #2085 issue w/ CallbackWomen as w/ cczona. Let me see what CallbackWomen looks like in Balanced ...

@chadwhitacre
Copy link
Contributor

I do see a bank account on file at Balanced for CallbackWomen.

@chadwhitacre
Copy link
Contributor

Says it was created at June 20 2014, 3:19 AM, which (assuming UTC and PDT) would be last Thursday at 8:19 PM your time. So that lines up, at least. :-)

@chadwhitacre
Copy link
Contributor

@cczona I'm also now seeing that you've re-added a bank account to your cczona account. So we should have what we need to do the payouts. Now let's make sure we've got your balance right on both accounts.

@chadwhitacre
Copy link
Contributor

The crucial question is whether the payouts we've recorded in Gittip sync up with the payouts that are recorded in Balanced. If those line up then your balance should be good, and we can get you squared away here, regardless of secondary issues like this present one, #2085, and the "flawed error message" issue above.

@chadwhitacre
Copy link
Contributor

The payouts for CallbackWomen are the same in both Gittip and Balanced.

@chadwhitacre
Copy link
Contributor

The payouts for cczona are the same in both Gittip and Balanced.

@chadwhitacre
Copy link
Contributor

@cczona BTW, you should be able to cross-check my result by looking at your Gittip history and your bank statements. Admittedly that's going to be more tedious, however.

@chadwhitacre
Copy link
Contributor

Okay! So your Gittip balance is not corrupt, and we now have a bank account on file, for both CallbackWomen and cczona.

@chadwhitacre
Copy link
Contributor

@cczona If we do nothing else right now, I would expect your Gittip balance to clear to your bank account tomorrow (less outbound tips). Is that sufficient for today? What else do you need from me to resolve this?

@cczona
Copy link

cczona commented Jun 25, 2014

Thanks! I'll check on it tomorrow.

@cczona
Copy link

cczona commented Jun 27, 2014

Success! Both accounts resumed transfers this morning. Thank you.

@chadwhitacre
Copy link
Contributor

@cczona Yay! Thanks for closing the loop. BTW, this ticket will stay open until we fix the underlying issue, so if you don't want spam down the road feel free to unsubscribe. :-)

@chadwhitacre
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants