Requirements
What it is
Clarify:
- goal: cut fraud losses while declining or delaying as few honest customers as possible;
- scale: about 630,000 payments and refund requests a day; peaks around 22 a second, far higher during sales;
- latency: a decision within 100 ms (p99) at payment time, before the order is confirmed;
- fraud types: stolen cards, fake accounts made for sign-up offers, refund abuse ('item never arrived'), account takeover;
- constraints: a review team of 15 people; decisions must be explainable to reviewers; customers can appeal.
Why it matters
Each fraud type has different signals and labels, so name them.
- The latency limit forces online scoring with precomputed and streaming features.
- Review capacity turns the threshold into an operations question (below).
In the real world: Payment companies typically separate models (or at least labels and features) for card fraud, account takeover and promotion abuse.
Treating fraud as one problem. Refund abuse by real customers looks nothing like stolen-card fraud by strangers, and one undifferentiated model handles both poorly.