Payments
Subscription renewals that never charge or ship twice
- TypeScript
- Node.js
- Payment integrations
- Medusa
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.
- Browser checkoutStart the payment session
- Hosted providerComplete payment externallyReturn · cancel · retry
- Verified eventCheck payment + renewal state
- Order ledgerReconcile the stored result