Three-Difference Transit Payment Architecture Test
Design transit payments around fare uncertainty, speed, and irreversible failures
- Difficulty
- Advanced
- Time to result
- ~months to results
- Steps
- 5
- Confidence
- 96%
The test evaluates a transit-payment design against three structural differences from retail. First, the final charge may remain unknown until a journey is completed, requiring fare, zone, transfer, and cap calculations after the initial tap. Second, validation must occur in roughly 300 milliseconds, leaving insufficient time for a normal online balance check and forcing the system to manage offline risk. Third, a passenger cannot usually be recalled if downstream processing fails after entry has been granted. The platform must therefore maintain persistent transaction state and retry failures without requiring the card again. Together, these tests turn an apparently simple contactless checkout into a specialized architecture for fare calculation, throughput, risk allocation, resilience, and recovery.
Origin
Amin Shayan described the model on Leaders In Payments while explaining why littlepay needed a specialized architecture rather than an ordinary retail-payment processor.
Core principles
- 01Model the journey before selecting payment infrastructure
- 02Treat unknown fares as a first-class system constraint
- 03Optimize validation for passenger throughput
- 04Assign offline-payment risk explicitly
- 05Preserve transaction state so failures can be retried
How to run it
- 1
Map Fare Certainty
Identify when the final fare becomes known and which journey events affect it. Document zones, transfers, daily caps, monthly products, and incomplete journeys.
Pro tip Use real passenger journeys to expose combinations that a simple fixed-price model misses.
Watch out Do not authorize a fixed amount at entry if the actual fare depends on later travel events.
- 2
Set the Throughput Budget
Define the maximum tap-response time that stations and vehicles can tolerate. Work backward from that budget to determine which checks can occur at the device.
Pro tip Measure performance at peak passenger volume rather than under laboratory conditions.
Watch out A retail-style two- or three-second authorization can create queues at gates and vehicle doors.
- 3
Design Offline Risk Controls
Specify what the device can validate without a live account check and how suspected bad cards are handled. Decide who bears losses when a passenger travels without sufficient funds.
Pro tip Combine local card checks, deny lists, velocity rules, and later recovery attempts.
Watch out Offline acceptance improves throughput but transfers financial risk somewhere in the ecosystem.
- 4
Persist Transaction State
Record each transaction's progress across device, network, fare engine, processor, and settlement stages. Ensure processing can resume after an interruption.
Pro tip Use idempotent state transitions so retries cannot create duplicate charges.
Watch out A stateless pipeline can permanently lose revenue after the passenger has already been admitted.
- 5
Retry Without the Passenger
Build automated recovery for network, authorization, and downstream processing failures. The retry path must work without presenting the physical card again.
Pro tip Track retry outcomes and unresolved debt as operational metrics.
Watch out Do not rely on asking the passenger to repeat the transaction after they have boarded or passed through a gate.
In the wild
A passenger taps into a rail network before the system knows the destination or whether a daily cap will apply. The device validates the card within the throughput budget, records the entry, and permits travel. After the exit tap, the fare engine calculates the journey and applies the cap. If the processor is temporarily unavailable, persistent state allows the charge to be retried safely later.
→ The passenger moves through the gate quickly while the operator retains accurate fare calculation and payment recovery.
A bus temporarily loses network connectivity while a rider taps a contactless card. Local authentication approves the tap, and the platform stores the event rather than discarding it. When connectivity returns, the transaction proceeds through fare calculation and payment processing without requiring the rider to present the card again.
→ Service continues during the outage and the operator can still recover the fare.
Common mistakes
Treating Transit Like Retail
A standard checkout assumes a known price, enough time for online authorization, and a customer who can retry. Transit frequently violates all three assumptions.
Ignoring Ownership of Offline Risk
Fast offline acceptance creates possible losses. A viable design must state which operator, processor, or partner owns and mitigates that exposure.
Losing State After Entry
If a downstream failure erases transaction progress, the passenger is gone and the fare may be unrecoverable. Persist every stage and make retries idempotent.
Is it for you?
Best for
It is best for transit operators, payment processors, and mobility platforms designing open-loop fare collection.
Not ideal for
It is not designed for conventional retail checkouts where price, connectivity, and customer presence are predictable.
From the transcript
“And there were three really key differences.”
“But in public transport, the standard is 300 milliseconds.”
“If something falls over, we have to be able to retry that transaction because we don't have access to the person and their card.”
From the episode
Amin Shayan, CEO of littlepay
Amin Shayan