The problem

A payment can be reported twice, or late, by the payment provider. Without care, a customer is charged or shipped twice.

What I did

  • Recorded every payment against its order, so a repeat is recognised
  • Checked stock and customer details before each renewal
  • Tested the failure cases a normal purchase never reaches

From checkout to a verified order.

  1. Browser checkoutStart the payment session
  2. Hosted providerComplete payment externallyReturn · cancel · retry
  3. Verified eventCheck payment + renewal state
  4. Order ledgerReconcile the stored result
The return page restores the checkout experience. Verified provider state and renewal checks control the order and payment ledger updates.

Need the same?