The problem
Small cross-border merchants find card acquiring expensive, slow to settle, and exposed to chargebacks.
Stablecoins fix the cost and the speed, but create two new problems, and they are the real product work: buyers make irreversible mistakes (wrong chain, wrong amount, no gas token), and the flow needs compliance (screening, travel-rule data, buyer-location limits).
Design principle: the buyer does two things, pick USDC and sign. Everything else is ours.
Walk through it
01
The merchant-facing product
Quayline pitches one promise to Singapore merchants: get paid in USDC, bank it in SGD.

02
Checkout
“Pay with USDC” appears only for allowed buyer regions. Travel-rule fields scale with the amount.

03
Payment page
A unique deposit address per order, a 15-minute quote, and the network name in large type, the cheapest fix for wrong-chain sends.

04
On mobile
Scan an EIP-681 QR code; the wallet opens with chain, token, amount and address pre-filled.

05
Success
The buyer sees success after 10 blocks, with the order number and an explorer link.

06
Merchant dashboard
Pending finality and available balance are separate numbers: the buyer can see success before the merchant can spend the money.

07
Order detail
Tx hash, confirmations, fee, travel-rule record and a full timeline for every order.

08
Webhooks
Signed status webhooks with automatic retries and a delivery log.

09
Exception queue
Underpaid, overpaid, late, wrong token, flagged wallet: each has a default action and a one-click path.

10
Reconciliation
Chain ↔ FX ↔ bank, matched three ways. Breaks turn red; export to CSV.

11
Metrics
Completion rate, exception rate, time to success and time to funds, computed live from the prototype's own records.

Verified with real testnet transactions
- Payment, auto-matched to its orderpayment · 0xf56a07…46559a
- Full refund to the original address, gas paid by the platform (EIP-3009)refund · 0x42431e…667b40
- Gasless payment from a brand-new wallet holding exactly 0 ETHpayment · 0x2282b0…546667
- Underpaid 0.90, topped up 0.30, order succeeded0.90 · 0x289b00…e14b02 0.30 · 0x44214d…847ee5
- Overpaid 1.32 for 1.20, excess refunded automaticallypayment · 0x7b9e54…550662 excess refund · 0xe3c75d…13f350
Amounts are scaled to 1/100 because the testnet faucet gives 20 USDC every two hours.
Key trade-offs
Two finality states over one threshold
The buyer sees success in seconds; the merchant's money is released only once the block is posted to Ethereum L1, with a fresh reorg check.
Refund only to the original address over any address the buyer gives
“Send it somewhere else” is the classic fraud and laundering path. The cost: buyers who paid from an exchange may not get the refund.
Convert to SGD daily by default over holding USDC
Target merchants pay rent and salaries in SGD. Holding USDC is one switch away.
Three chains shown, one live over every chain with USDC
Each chain adds a watcher, confirmation rules, an off-ramp, and one more way to send on the wrong network.
Sponsor the buyer's gas over requiring ETH
A buyer holding only USDC is exactly the customer. Sponsorship is limited to exact-amount, exact-address authorisations, once per 30 s.
A unique address per payment over one address plus a memo
Matching becomes fully automatic. The key-management and gas cost is absorbed by EIP-3009 refunds.
What building it taught me
- My finality rule was wrong by 10×. I had assumed 2-second blocks; measuring the real chain (0.2 s) showed “15 confirmations” meant about 3 seconds. The rule is now tied to L1 posting, not a block count.
- Running it surfaced two requirements the PRD missed: gasless checkout, and a checkout funnel that records why buyers drop off.
- An independent AI review, given only the code, found 11 edge-case defects that happy-path testing missed, including double-refund and stranded-funds paths. Each became a regression test.
What's real and what's simulated
| Payments, confirmations, matching, refunds, gasless flows | Real, on Base Sepolia |
| Webhooks with signing and retries | Real, to a local mock merchant |
| Address screening, region gating, travel-rule tiers | Wired into the flow, using demo lists |
| USDC → SGD conversion, bank payout | Simulated and labelled |