Sukha Commerce
Custom e-commerce platform: a Laravel engine (catalog, stock reservations, checkout, payments, shipping, COD with WhatsApp confirmation, returns, admin and reports) behind a headless Next.js storefront. Payments, shipping and WhatsApp run in simulated mode.
- Timeline
- Completed
- Role
- Full Stack Developer
- Team
- 1 person
- Tests 22 Pest
- COD WhatsApp confirmation
- Import WooCommerce

Overview
Sukha Commerce is a portfolio e-commerce platform for stores that outgrow hosted templates. A Laravel engine owns the catalog, stock, checkout, payments, shipping, returns and reports, a headless Next.js storefront reads from it, and an admin built with Inertia and Vue covers day-to-day operations. The demo store is Sukha Living, a fictional handmade-homeware brand in Yogyakarta, with Indonesian payment methods (QRIS, virtual accounts, e-wallets, COD). Payments, shipping and WhatsApp run in simulated mode with no real credentials.
The Challenge
- Concurrent checkouts must not oversell, and cash on delivery needs follow-up that a normal checkout does not: confirming the order, chasing it and cancelling it when nobody answers.
The Solution
- Stock is reserved at checkout for 30 minutes with an atomic update that refuses to go below zero.
- Orders are an explicit state machine with an event log.
- The COD flow sends a WhatsApp confirmation (reply YA or BATAL), a reminder at 12 hours, a call task at 24 hours, auto-cancels at 48 hours, scores the risk of return-to-sender, and switches COD off above Rp 1,500,000.
- Webhooks are signed and idempotent, there is an idempotent WooCommerce importer, and the admin has role gates for owner, ops, catalog and finance.
