Ledger Lines
Nobody has said anything yet. Be the first.
Fintech engineering: payments, ledgers, reconciliation and compliance
Where money meets code. Double-entry ledgers, idempotent payment APIs, settlement files that do not add up, PCI scope, and the rounding bug that cost someone 0.01 a million times.
No real card or account numbers
Mask everything. Test PANs only, even in screenshots.
Bring the detail
Versions, error text, what you already tried. "It does not work" is not a question anyone can answer.
No drive-by self promotion
Share your own work when it answers the thread. A link with no context is an advert, and it gets removed.
Moderated by Arjun Mehta and Fatima Al-Sayed
Nobody has said anything yet. Be the first.
Showing 10 posts.
Story from March that I promised a few people. Clocks go back again on the 25th, so this is the right week. I work from Enugu for a London fintech. Nigeria is UTC+1 all year, no daylight saving. London is UTC+0 in winter and UTC+1 in summer. Our partner bank sends a settlement file per "London business day", midnight to midnight London time. Our reconciliation job builds the same window on our side and matches…
my app takes payments through stripe billing, and stripe tells my app what happened (paid, failed, cancelled) through webhooks. webhooks look simple. a POST request arrives, you update a row. i have now shipped five different bugs in roughly 80 lines of code, so here they are, in the order they hurt me. 1. parsing the body before verifying the signature stripe signs every webhook and you should check that signature,…
Every payment gateway webhook doc says some version of "we may send the same event more than once". What they say less loudly: events can arrive out of order, and sometimes they dont arrive at all. Our first webhook handler assumed none of this. Here is the version that survived. 1. Twice: store the event id Every event has an id. Insert it into a processed_events table with a unique constraint before doing anything…
If you move money, at some point finance will ask "does our ledger match the bank". The honest answer at most startups is "mostly". This post is how we went from "mostly" to a daily report that finance actually trusts. It took us around 4 months, so dont feel bad if yours is still a spreadsheet. Three sources, not two For card and UPI payments you have three views of the same money: Your ledger: what you think…
ok so. my side project is a small webhook relay api (you send your webhooks to me, i retry them properly, you sleep). about 4% of customers asked to pay in crypto, mostly from argentina, nigeria, and one guy in dubai who asks everything in crypto. i said why not pá, i'm in crypto since 2017. here is the honest report. the setup usdc only, on a cheap L2, so fees were cents one address per customer and a small script…
Sasa wasee. I wire up M-Pesa for a logistics startup in Nairobi, from Eldoret. Safaricom's Daraja API works, but the docs leave a lot for you to discover at 2am. Here is my list. Maze, read it before you start. 1. Never call Daraja from the app A consumer key and secret inside an APK is a gift to every bored teenager with apktool. App calls your backend, backend calls Daraja. No exceptions, not even "just for the…
Partner bank sends us a settlement file every morning. We compare it with our ledger and the totals should match to the paisa. One Monday it was off by ₹410.37. Not a lot of money. But a mismatch is a mismatch and finance will not close the day with it. First day we checked the obvious things. Missing transactions, duplicates, refunds settled on a different day. Everything matched row by row on the transaction…
Members keep scrolling, follow people and topics, and like, save and reply to posts.