Write the retry logic. The payment service is wired to time out twice and then succeed, and the backoff is the deterministic part you can test, so this exercise uses the doubling schedule without the random jitter a real client would add on top.
Premium Content
Subscribe to unlock full access to this content and more premium articles.
Get Premium
Subscribe to unlock full access to all premium content