Engineering Journal

Notes from building real-world digital products, business systems, integrations, and production software.

Person holding a credit card in front of a point-of-sale payment terminal
Payments—May 2026—5 min read

Designing Idempotent Payment Webhooks in Next.js

How to handle duplicate Stripe and Khalti webhook events, verify payments, and keep payment and order states consistent when networks fail.

Get engineering
notes

Technical case studies, engineering lessons, and notes from building real-world digital products and systems.

Logo icon

Occasional deep-dives into software architecture, database performance, payment integration, and engineering practices.

No spam · Unsubscribe anytime