Skip to content

Tags

#fintech

Posts tagged #fintech on Dynamo Geeks: 31 posts from the community, most useful first.

31 posts

Posts tagged #fintech

  1. Experience

    Our worst week this year: a queue job that charged one customer three times

    I post the wins here, so I should post this one too. UK ecommerce client, Laravel, a payment gateway the client chose (a smaller provider, not Stripe). Checkout puts a ChargeOrder job on the queue. The job had $tries = 3 with backoff, because "network errors happen". One evening the gateway was slow. The charge request took longer than our HTTP timeout, so the job threw a timeout exception. Laravel did exactly what…

    Ayesha Siddiqui25likes11comments

  2. Update

    timeouts are not failures. if the bank API times out you…

    timeouts are not failures. if the bank API times out you dont know whether money moved. mark it UNKNOWN, then query status or retry with the same idempotency key. never show 'payment failed, try again' on a timeout, thats how double charges happen

    Arjun Mehta2likes4comments

  3. Article

    Going from CRUD backend to payments: things I wish someone told me

    4 years back I was writing CRUD APIs for a food delivery startup. Then I joined a lending company, and in the first month I broke a reconciliation job, learned what a UTR is, and realised I did not know what a debit was. Writing this for anyone thinking about moving into fintech backend. Learn basic accounting before anything else. Not the full course. Just double entry, what assets and liabilities are, and why a…

    Arjun Mehta4likes3comments

  4. Article

    ₹3.1L MRR selling GST billing to textile traders: 11 things nobody tells you about Indian SMB SaaS

    Kem cho! Two years ago I left a "stable" job (sorry Papa) to build GST billing software for textile traders in Ahmedabad and Surat. Today: ₹3.1 lakh MRR, 228 paying shops, 2 developers, 1 uncle. Bootstrapped, no VC. Here is what I learned, numbers included. Jo's posts inspired the format, the jokes are my own fault. Nobody pays annually. Everybody wants discount. We offered 2 months free on annual. 6 shops took it,…

    Dhruv Thakkar30likes13comments

  5. Experience

    Our reconciliation job was wrong every day for a week because London changed its clocks

    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…

    Emeka Nwosu21likes8comments

  6. Experience

    I took our UPI collect flow down for 14 minutes on a Friday evening

    Every Friday deploy story starts with "it was just a config change". So here is mine. Our partner bank rotates the public key they use to sign payment callbacks once a year. They emailed us the new key, I updated the config and deployed at 6pm on Friday because the old key was expiring on Saturday. Felt responsible. Was not. We run the callback service on 2 pods. The config came from a mounted secret, one pod picked…

    Arjun Mehta5likes3comments

  7. Article

    Payment webhooks arrive twice, out of order, and sometimes never. Design for all three

    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…

    Arjun Mehta8likes5comments

  8. Article

    Reconciliation without losing your mind: matching ledger, gateway and bank

    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…

    Arjun Mehta7likes4comments

  9. Experience

    accepted USDC for my side project for 6 months, from lisbon. ahah. here is what actually happened

    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…

    Tiago Ferreira10likes13comments

  10. Article

    Why your SaaS pricing does not work in Kisumu (1/15)

    1/ Every month a founder emails me: "we launched in Kenya, the traffic is great, nobody pays". Then I open the pricing page. $29 a month, card only, 20% off if you pay annually. Let me explain why that page is a wall. 2/ Start with the card. Most of your customers in Kisumu do not have a credit card. Many have a debit card that does not work online, or works until the bank's fraud system sees a foreign merchant and…

    Achieng Owino43likes12comments

  11. Experience

    The Friday deploy a power cut saved (and the idempotency key that saved us the next time)

    Howzit. Two stories, one lesson, and the lesson is not "don't deploy on Friday", sorry. Story one A few years back, Friday 16:30, I'm about to push a change to how we retry failed card authorisations. Tests green, reviewer happy, I'm feeling lekker. I type the command and the power goes. Whole block. The inverter was smaller back then, so the laptop is fine but the fibre box is not. No internet, no deploy. I sulked,…

    Lindiwe Mokoena23likes9comments

  12. Article

    Daraja STK Push from Android: 10 things the docs will not tell you (with Kotlin)

    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…

    Brian Kiprono24likes11comments

  13. Experience

    play store rejected our app 3 times for a permission we never asked for

    small story that cost us almost two weeks, maybe it saves someone we submitted an update for a client's fintech app and google play rejected it for using QUERY_ALL_PACKAGES without a valid reason. problem: we never added that permission. i searched the whole codebase, not there. resubmitted with an explanation, rejected again. the client is calling me every morning at this point turns out android builds your final…

    Tunde Adebayo2likes2comments

  14. Experience

    Our settlement was off by ₹410 and it took three days to find why

    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…

    Arjun Mehta3likes3comments

  15. Article

    The African startup funding winter, explained without the doom (1/16)

    1/ Every week someone asks me if African tech is dead. It is not dead. It is cold. Here is why it got cold, who froze, and what the survivors are doing differently. 2/ 2021 and 2022 were the hot years. Money was cheap everywhere, interest rates were near zero, and every fund wanted an "Africa thesis". Fintech took the biggest share by far. 3/ Then rates went up worldwide. When a fund can earn a safe 5% on government…

    Achieng Owino31likes15comments

  16. Article

    Threat modelling a payment flow in 45 minutes with STRIDE and a whiteboard

    Threat modelling has a reputation for being a heavy process with special tools and a 40 page document nobody reads. It does not have to be. For most features, a 45 minute session with the people who built it finds the important problems. This is the format I use with product teams at the bank. Before the session (10 minutes, one person) Draw the data flow on one page. Boxes for components, arrows for data, and…

    Fatima Al-Sayed3likes3comments

  17. Question

    Engineers who have worked on UPI: why do failed transactions take days to reverse when the rule says T+1?

    Working on a data story about failed UPI transactions. Readers sent us about 1,800 complaints (voluntarily, everything anonymised) where money left their account but never reached the merchant or the person they were paying. The RBI's 2019 circular on turnaround times says, as I read it, that a failed UPI transaction should be auto-reversed by T+1, and after that the bank owes the customer ₹100 for every day of…

    Ira Saxena11likes12comments

  18. Article

    A double-entry ledger in Postgres, the boring way that works

    Every fintech I have worked at started with a balance column on the users table. And every one of them later spent months moving away from it. If you are building anything where money moves between parties, wallets, marketplaces, lending, start with a ledger. It is less work than it sounds and Postgres gives you almost everything you need. This is the design we run in production now. Nothing fancy. Boring is the…

    Arjun Mehta4likes4comments

  19. Article

    Idempotency keys in Go: the version that survives a double tap and a dead inverter

    Customer taps Pay. The request goes out on a 3G connection in Onitsha, reaches our API, the charge succeeds, and the response dies somewhere on the way back. The app sees a timeout and retries. Without protection, that is two charges and one very angry customer calling the merchant, who calls us. Same thing happens when NEPA takes light in the middle of a request and the client's inverter takes three seconds to kick…

    Emeka Nwosu26likes9comments

  20. Article

    Idempotent payment endpoints in Go and Postgres: the pattern that stopped our double charges

    For six months we refunded somebody almost every Monday. Same story every time: customer on a bad connection taps Pay, the request reaches us, the PSP charges them, our response never reaches the phone, the app retries, we charge again. This is the pattern we use now. Zero double charges since February. The rules Every POST that moves money requires an Idempotency-Key header. No key, 400. The client generates it…

    Emeka Nwosu22likes14comments

  21. Article

    Idempotency keys for payment APIs: what we got wrong the first time

    Last year we had a customer charged twice for the same EMI. Not a big amount, but the customer was right to be angry and our support team spent one full day itself on it. The root cause was not the bank, not the gateway. It was us, and the way we did idempotency keys. Sharing what we got wrong, because since then I have seen the same mistakes in two other codebases. What an idempotency key is supposed to do The…

    Arjun Mehta10likes9comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.