Where is my money? A payment timeline · Sep 2025 – Aug 2026
A payment timeline that says where the money is, and why
When a buyer abroad pays an Indian merchant, the money is received, checked, converted, settled and finally certified with a FIRC, the certificate that proves foreign money came in. Merchants kept asking where their money was. I built the timeline that answers that in the transaction details, and later rebuilt how it decides what to show.
- Role
- Frontend engineer
- When
- Sep 2025 – Aug 2026
- Where
- PayGlocal
- Stack
- Next.jsReact 19TypeScriptTanStack Query
The situation
The first timeline worked out each step from whichever timestamps happened to be present. That was fine for the happy path, but cross-border payments have many other paths: funds put on hold until an invoice arrives, payments reversed back to the sender, payments settled in dollars to an EEFC account with no conversion at all, and settlements within the same bank. A timeline that guesses from timestamps shows these wrongly, and a merchant reading “converted” on a payment that wasn’t converted, or nothing at all on a payment that’s on hold, calls support.
What I built
- A “FIRC received” step in the payment timeline, with each step carrying its own status, and clearer names: money now arrives in “our collection account”, not an internal name.
- A new payment-timeline stepper in the transaction details, backed by a new timeline API, with a reworked header card that shows the status and settlement date at a glance.
- A rewritten mapper that draws every step from an explicit status field: in progress, on hold, reversed, FX booked, settled, and settlements within the same bank, where the FIRC is shown as settled rather than received.
- A settlement breakdown: amount received, fee, referral or offer discounts (first as separate rows, then one discount row with its type and the final fee), tax and the amount settled.
- EEFC payments shown without a conversion step, with the currency split and settlement details correct.
- The FIRC download only offered when it can work, and the merchant’s virtual account shown as a row inside the timeline instead of a separate card.
What happened to the payment?
Settlement breakdown
Each step carries its own status from the server (done, current, on hold, skipped), so a reversal or an EEFC payment draws correctly without the screen guessing from timestamps.
Decisions
Status from the server, not guesses from timestamps
A missing timestamp can mean “not yet”, “never” or “skipped”. Only the backend knows which. With an explicit status per step, the screen draws what the server says, and new paths need a new status, not new guessing logic.
Name things as the merchant sees them
Internal names leak into interfaces easily. “Funds received by PayGlocal collection account” tells a merchant where their money is; an internal system name tells them nothing.
Only offer what will work
A download button that fails is worse than no button. The FIRC download appears only when the identifiers it needs exist.
Know when to back out
One attempt to ship a parallel, rebuilt transaction-details tree was reverted the next day. Rolling back quickly and moving the changes in smaller steps was cheaper than fixing it live.
Outcome
| What | Before | After | Detail |
|---|---|---|---|
| Payment paths drawn correctly | the happy path | hold, reversal, EEFC, same-bank | status per step |
| Fees and discounts | one net figure | line by line | settlement breakdown |
| Work on the timeline | ~40 commits | Sep 2025 – Aug 2026 | |