Cutting critical payment errors from 94 to 4 per million

Role: Lead UX designer, end-to-end transaction flows · Team: 3 designers (me as lead, 1 UX, 1 UI), 1 PM, 1 systems architect, 8 engineers (6 back end, 2 front end), 1 QA lead, 1 compliance specialist · Timeline: Mar to Jun 2022 (14 weeks: 6 design, 6 engineering, 2 QA and staged rollout) · Year: 2022 · Domain: Fintech

TL;DR: Every terminal model had its own payment flow; one configurable state machine replaced them, cutting critical errors 96% and device integration from 4 to 6 weeks to 9 days.

Every terminal model had its own payment flow; one configurable state machine replaced them, cutting critical errors 96% and device integration from 4 to 6 weeks to 9 days.

Impact

Summary

Every terminal model had its own payment flow; one configurable state machine replaced them, cutting critical errors 96% and device integration from 4 to 6 weeks to 9 days.

My contribution

Outcome

Key decisions

1. One parameter-driven state machine for every device model.

Instead of: A single universal flow with conditional branches for each device.

Because: Modelling the 12 device configurations as branches produced 47 branch points and 218 paths. Interviews with 6 processors showed every payment shares one sequence: initiate, authorize, confirm, complete.

Result: New device integration fell from 4 to 6 weeks to 9 days for the first model after launch.

2. Three distinct screens for processing, timeout and declined.

Instead of: One shared waiting screen, with fewer screen variants to build.

Because: The heuristic review found timeout and declined both showed the same grey spinner. Log analysis put 61% of critical errors in timeout recovery.

Result: Timeout-related duplicate charges fell from 1.8 to 0.1 per day.

3. No retry on a declined payment, with a plain reason on screen.

Instead of: A Retry button on every error state.

Because: Retrying a declined card never changes the outcome. In testing, 4 of 10 operators still tapped Retry on declines.

Result: After the explanation line was added, retry taps on declines stopped in follow-up testing.

4. Document all 47 edge cases before launch.

Instead of: Shipping 2 weeks earlier, as Phase 2 had.

Because: Phase 2 documented 18 of 47 cases. The other 29 surfaced in production through support escalations and merchant complaints.

Result: Edge case coverage went from 38% (18 of 47) to 100% (47 of 47) at launch.

What was unclear at the start

Phase 2 had built a separate flow for each terminal model. Nobody knew whether the devices really needed different flows, or whether the differences were only technical settings. Two device teams argued their hardware needed its own logic.

My first move was to make that the explicit research question: which device differences need a UI change, and which belong in configuration? We sorted every difference we found into one of those two buckets, using production logs, interviews with processors and device makers, and on-site observation.

Every difference landed in configuration. The agreed problem became: one flow every operator can trust on any terminal, with each device described by its settings rather than by its own logic.

Process

Research: four tracks, one question

We observed 14 operators over full shifts at 8 stores in 3 cities. We analysed 4.2M transactions from 1,400 terminals. We interviewed 6 processors, 3 device makers and 2 compliance liaisons, and ran a heuristic review of 8 flows with 2 external reviewers. Operators at multi-device stores carried recovery habits from one terminal to another, which made inconsistency itself a source of errors.

The four research tracks and what each one found. Reconstructed from the research summary.

Architecture: one sequence, many configurations

We explored three directions: refined per-device flows, one branching master flow, and a state machine driven by parameters. The branching flow was correct but unmaintainable at 218 paths. The state machine kept the flow fixed and moved timeout threshold, receipt auto-print, retry limit and contactless fallback into a config file per device. A pilot manufacturer team configured their device in 4 days against their own 4-week estimate.

Initiate → Authorize → Confirm → Complete

State design: status separated from action

We held 3 design reviews on state naming before any visual work. Processing got an animated ring, no buttons and a time estimate. Timeout got a static amber alert with Retry or start a new transaction. Declined got a static red alert and only one option: another payment method. Status uses colour, icon and label together.

Phase 2: Grey screen with a spinner for waiting, timeout and declined. Operators guessed, and wrong guesses caused duplicate charges. Force restarts during timeouts

Phase 3: Processing: animated ring, no buttons, time estimate. Timeout: amber, Retry or new transaction. Declined: red, try another payment method

Testing with operators

We ran moderated tests with 10 operators of mixed experience. Three findings changed the design: a reason line on declines, a clearer label on the timeout exit, and a receipt fallback by SMS or email when the printer fails. First-attempt error recovery in testing went from 52% to 84%.

Usability findings from 10 operators and the change each one drove. Reconstructed from the test notes.

Handoff

I delivered BPMN 2.0 diagrams for all 47 edge cases, a Figma library of 27 screens and 4 animation states, a parameter reference with validation rules, and a handoff spec with state transition tables and error code mapping.

Outcome

Critical payment errors fell from 94 to 4 per 1M transactions over the first 60 days, July to August 2022, on 4,500 terminals against a Phase 2 control group.

Median end-to-end transaction time fell from 45 to 36 seconds over the same 60 days.

Timeout-related duplicate charges fell from 1.8 to 0.1 per day, and transaction support tickets from about 840 to about 310 per month, in the Phase 3 cohort.

New device integration fell from 4 to 6 weeks to 9 days for the first model onboarded after launch.

Projected, not measured: about $180K a year in support labour savings if the ticket reduction held across the full 15,000-terminal network.

Two hardware partnerships that had been blocked by Phase 2 went live within 30 days of contract signing. The parameter model became the standard for new terminal integrations.

What I would do differently

Research questions

  1. What are the most common failure modes in the current transaction flows, and where do operator errors occur?
  2. What information do operators need at each decision point to recover from errors confidently?
  3. Can one configurable flow replace device-specific flows without losing clarity or operator trust?
  4. Which device differences genuinely need UI changes, and which are purely technical and belong in configuration?

Success criteria, set before design (targets, not results)

MetricPhase 2 baselineTargetMeasured by
Critical payment errors per 1M transactions94Under 5Production monitoring, first 60 days
Median end-to-end transaction time45 seconds36 seconds or lessProduction timing logs, pre and post
First-attempt error recovery, no escalation52%80% or moreUsability testing, 10 operators
New device integration, design through QA4 to 6 weeks2 weeks or lessActual integration timelines
Edge case documentation coverage38% (18 of 47)100%Documentation audit before launch

Directions explored

DirectionWhy consideredWhy rejected or chosen
Device-specific flows with a shared visual languageLeast engineering disruption. Device teams keep control.Rejected. It was the Phase 2 architecture and kept logic coupled to hardware.
One universal flow with conditional branchesOne source of truth.Rejected. Modelling 12 configurations gave 47 branch points and 218 paths. Any change meant reviewing the whole diagram.
Parameter-driven state machineAll device differences sat in configuration.Chosen. One flow for every operator, a config file per new device, finite paths that could be fully regression-tested.

States and key flows

The state machine defines every valid state (idle, card present, authorizing, timeout, auth failed, declined, confirmed, printing, complete, error) and every valid transition. Device behaviour lives in one JSON configuration file per model: timeout threshold, receipt auto-print, retry limit, contactless fallback.

Usability test rounds (10 operators)

Accessibility

Deliverables

BPMN 2.0 diagrams for all 47 edge cases with annotated recovery paths. A Figma library of 27 terminal screens and 4 animation states. A configuration parameter reference with validation rules. An engineering handoff spec with state transition tables and error code mapping.

How results were measured

Staged rollout: Phase 3 went to 4,500 terminals (30% of the fleet) while Phase 2 ran on the other 10,500 as a live control. Measurement ran for 60 days, July to August 2022, covering 1,400+ merchants.

Operator survey, 6 weeks after rollout (200 operators)

"Before, when the terminal froze, we'd have to call IT and the line would back up. Now the screen tells us exactly what happened. My team hasn't needed to call support for a terminal issue in 3 weeks." Store manager, high-volume grocery chain

"We configured the parameter file in four days. We were expecting to spend three weeks on this. Whatever you did architecturally, please don't change it." First device partner onboarded after Phase 3

What it opened up

Highlights

Capabilities

UX Research, Wireframing

Tools

Figma, BPMN, EMV Standards, Payment APIs