A referral programme merchants can see · Dec 2025 – Oct 2026
A referral programme merchants can actually see working
A referral programme only works if people can see it working: their link, who signed up, how close they are to the reward, and the reward actually showing up on their payments. I built each of those pieces in our merchant dashboard, and again in its rewrite.
- Role
- Frontend engineer
- When
- Dec 2025 – Oct 2026
- Where
- PayGlocal
- Stack
- Next.jsReact 19TypeScriptTanStack Query
The situation
The old referrals page was a header, an info banner and not much else. Merchants couldn’t see whom they’d referred, how those merchants were progressing, or what they’d earned. And when a referral discount did apply, the payment details showed one net fee, so the reward was invisible exactly where it mattered.
What I built
- A rebuilt referrals page: a referral card with the merchant’s link, an analytics section, and a table of referrals wired to the referral wallet and transactions APIs.
- Banners on the invoices page that promote the programme to merchants who haven’t referred anyone, and become a progress tracker with a progress bar for those who have, with the choice remembered per user. A carousel for the offers, with an MDR (fee) discount variant.
- Discounts made visible: referral and offer discounts as their own rows in a payment’s FX details and settlement breakdown, later a single discount row with its type and the final fee.
- The Refer and Earn banner kept out of partner logins, where it doesn’t apply.
- In the dashboard rewrite: the merchant home shows a live referral link and referral summary cards with a worked example of what a referral is worth.
Your referral link
https://pay.example.com/r/northwindWhere the reward shows up
A $5,000 payment, with and without a referral discount on the fee. Sample fee and reward terms.
Decisions
Promote first, then track
A merchant who has never referred anyone needs to hear about the programme. One who has needs to see their progress. The same banner does both, depending on where the merchant is, and remembers if they’d rather see their progress.
Show the reward where the money is
A discount that disappears into a net fee isn’t felt. Putting it on its own line in the payment breakdown is what makes a referral programme believable.
Release behind an entry point
The sidebar entry was turned on and off several times around release while the programme’s details were settled, and was hidden at the end of that first release. Building the page behind a toggleable entry point let the product decision move independently of the code.
Outcome
| What | Before | After | Detail |
|---|---|---|---|
| Merchant’s view of their referrals | a banner | link, table, analytics | rebuilt page |
| Referral discount on a payment | hidden in the net fee | its own line | visible |
| Banner | one message for everyone | promo or progress tracker | per merchant |