Payments after a lost response 00:00:01 The customer saw no receipt I just pressed pay for twenty-five dollars, but the screen stayed blank—no receipt, no confirmation, just silence. My phone didn’t even show a network error. For this case, the processor accepted the twenty-five-dollar payment, but its response never reached the shop. The customer cannot see what the processor knows. Now the shop doesn’t know if the charge went through—no reply means no proof, and the system can’t tell if it’s waiting or already done. There are two timelines to follow. On the provider’s timeline a charge exists. On the shop’s timeline the outcome is unknown. Confusing those perspectives turns a routine retry into a potential second financial operation. 00:00:50 Give the intent one durable identity Give one checkout intent a stable, unique payment key. Generate it once when the intent is created and reuse it for compatible attempts at that same purchase. When the customer retries, first look up the existing intent. Depending on provider state and policy, retrieve the existing payment or retry the same request with the originally recorded key. If the new request changes the currency or amount, reject the mismatch under the original intent. A different commercial decision should receive an explicit new identity. Persist the purchase intent before contacting the provider. Associate the key with the amount, currency and customer context. Use the provider’s documented scope and retention period; an old key is not a permanent global guarantee. 00:01:42 Post balanced ledger entries When authoritative evidence supports the posting, record a balanced debit and credit together under one unique local posting identity. Those entries are in the merchant’s ledger. A ledger can balance even if a programmer accidentally posts the entire pair twice. Two debits and two matching credits still balance, while the business has recorded twice the intended amount. Enforce uniqueness for the financial event independently of balanced totals. Also reconcile with the provider. An internally consistent ledger cannot prove that a remote processor actually moved money. For a simple twenty-five-dollar sale with no modeled fees, a merchant might debit a processor-clearing asset and credit sales in its own books. The appropriate accounts depend on the business. One balanced posting records one financial event. 00:02:37 Reconcile with the provider The reconciliation job matches our pending intent to the provider’s payment identifier, amount, currency and relevant status. If trustworthy evidence is still missing, the case stays unresolved. Once confirmed at the required milestone, write the outcome and create or link the single authorized local posting. Guard this transition against concurrent retry and reconciliation workers. If evidence conflicts, record the discrepancy for investigation under a defined policy. Guessing that silence means decline could initiate a second charge for the same purchase. Reconciliation can use a provider object, a confirmed event, or a settlement report according to the state being determined. Authorization, capture and final settlement are different milestones. Match like with like before declaring a discrepancy. 00:03:31 Answer the original customer On a later retry the shop retrieves its confirmed outcome and returns the original purchase result. The key locates the relevant record. It does not, by itself, prove that money moved. A true second purchase gets a new idempotency key—no reuse, no confusion, just a fresh transaction with its own identity. A retry is another attempt to finish the same commercial decision. A second purchase is a new decision even if the customer buys the same thing for the same price a minute later. Run a rehearsal where the provider succeeds and the shop crashes before storing the response. The next worker must find the same intent, recover the authoritative outcome and make one local posting, even if two workers race.