Define
Why: The contract must include asynchronous and ambiguous states.
Deliverable: Field map, status model, retry and idempotency rules.
PRACTICE PROJECT / GUIDED PROJECT
Define the contract, reconciliation and failure paths for a new payment service.
Read the brief and work through the deliverables before opening the reference approach. Your notes stay in this browser only.
A fictional subscription company needs a second payment provider for resilience.
The current provider has outages; the business wants failover without duplicate charges.
The provider exposes create-payment and status endpoints plus asynchronous webhooks; IDs and errors differ from the current provider.
Draft an approach here, or work offline. Notes are stored locally in your browser—not sent to a server.
This is one defensible approach, not the only correct answer. Compare the reasoning and trade-offs with your own work.
Why: The contract must include asynchronous and ambiguous states.
Deliverable: Field map, status model, retry and idempotency rules.
Why: Happy-path testing misses the most expensive failures.
Deliverable: Duplicate callback, timeout, delayed success and provider-outage tests.
Why: Payments need a controlled fallback and clear ownership.
Deliverable: Phased rollout, monitoring and reconciliation runbook.