System Design · Salesforce · Hard
Design an idempotent payment processing service that receives payment requests, invokes an external payment provider, records the outcome, and reports the current payment status back to the caller. The central difficulty is preventing duplicate charges while safely handling cases where a network timeout leaves the provider outcome unknown—the provider may have succeeded even though the platform never received the response. The platform must support retries of the same…
Checking your access…