DEV Community

Joshua Davis
Joshua Davis

Posted on

Debugging the gap between a payment and a bank deposit

Say an invoice is $1,000 and the deposit is $970. The difference alone tells you very little. A fee and an underpayment can produce the same $30 gap.

I built LedgerLens around tracing the payment through settlement to the deposit. The most useful debugging question for me is where the amount first changed. If the processor recorded the full payment and itemized a fee, that points to a different investigation than a payment that was already short when it arrived.

I put together an interactive walkthrough with synthetic payment data. If you were handed a ticket for a short deposit, which record would you open first?

Top comments (0)