Software Testing / Learning brief

Tom presses the lift button twice

What this means in plain language

Lily's train network is slow, so the app sends her upgrade twice. A lift story shows how a retry key and a few repeat tests keep the result to one charge, even when messages come twice or late.

Understand the full idea, step by step

You press the lift button. Nothing seems to happen, so you press it again. The lift must still come once, and it must not break.

Lily is on a slow train. She taps Upgrade, and the app sends the request twice because no answer came back. Tom wants to know that she is charged once.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Idempotency and webhook testing as taught in this academy, with an invented app and invented people. The key and event names are made up.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts or registry entries. The lift is a teaching picture.

Sources for this brief — 5 sources
  1. Market practice

    RFC 9110 — HTTP Semantics ↗ — IETF · HTTP semantics define safe and idempotent methods; PUT and DELETE are idempotent and POST is not (registry source, not opened in this run)

    The definition of what an idempotent request method is, alongside safe methods, the status-code semantics an API contract is built on, and conditional requests.

    Used here for the systems-design questions a Payments Software Engineer and a Payments Solution Architect are asked, where the question turns on HTTP's own guarantees rather than on a scheme's rules. · Checked 2026-08-18

    Internet Standard, June 2022, obsoleting RFC 7230 through 7235.

    Cited for method semantics only. "Idempotent" in RFC 9110 is a property of a method: that repeating the request has the same intended effect on the origin server. It is not the same claim as "this payment cannot be duplicated", which is a scheme-level guarantee with its own documents.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read in full from the HTTP Working Group's own publication mirror at httpwg.github.io.

  2. Market practice

    The Idempotency-Key HTTP Header Field — active Internet-Draft 08 (22 October 2026) ↗ — Internet Engineering Task Force · An Internet-Draft describes an Idempotency-Key header that makes POST or PATCH fault-tolerant, with a unique key such as a UUID that must not be reused with a different payload; status unconfirmed (search excerpt, page not opened)

    Actual tracker/front matter/draft08§§1–2.7reviewed. Updated22October2026,expires25April2027,activeInternetDraft not RFC. Provider-defined uniqueness/expiry/fingerprints and proposed400/409/422handling are draft-scoped. Earlier07expired descriptions remain historical, not current status. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  3. Market practice

    Handle duplicate webhooks that arrive out of order (OneUptime blog) ↗ — OneUptime · Store each event identifier first to drop repeats, guard against stale events with a conditional update on a revision, make the business action safe to repeat; one provider does not guarantee delivery order (search excerpt, page not opened)

    Recommends storing each event identifier first to drop repeats, guarding against stale events with a conditional update on a revision, and making the business action safe to repeat. Says one provider does not guarantee delivery order. Practitioner or vendor guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    The PaymentIntent lifecycle (Stripe documentation) ↗ — Stripe · Check payment status on the server and fulfil an order only when the payment has succeeded (search excerpt, page not opened)

    Actual complete lifecycle table reviewed: authentication/payment/setup differ; declined attempt can return to requires_payment_method; capture and cancellation have method/state scope; refund separate. A closed UI is not cancellation. Documentation conflicts on exact processing-method cancellation lists are not universalised. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREIdempotency, duplicates and webhooksNetworks repeat and reorder messages. Learn how to test that a repeated request or a message that arrives twice, or late, leaves exactly one correct result.Opens at L0 Explain simply · about 20 min

Related briefs

Tom presses one button on the remote

Leo renames the sign-in button and twelve Daily List checks break at once. Tom learns to keep the where of a page in one place with a page object, and meets layers and the Screenplay pattern.

READ BRIEF