Checkout Rebuild and Payment Orchestration
Challenge
Handling asynchronous payment states (pending UPI, delayed webhooks) without double charges or ghost orders. We modelled payments as a state machine with timeouts, status polling and idempotency keys.
Approach
The new checkout supports guest checkout, address autocomplete with PIN-code serviceability checks, UPI intent and collect flows, cards, wallets and cash-on-delivery with risk-based eligibility. A payment orchestration service routes transactions across gateways based on success rate, method and cost, with automatic retries on a secondary gateway. Webhooks are processed idempotently, and a reconciliation job matches gateway settlements against orders daily.
Outcome
Illustratively ~10–20% improvement in checkout conversion Fewer failed payments through smart gateway routing and retries Lower COD return-to-origin rates through risk-based COD eligibility Clean daily reconciliation, reducing finance team manual effort Checkout stayed stable through peak sales traffic