Skip to content
Vichet Sat
All projects

Ty Khai TopUp — Game Top-Up Store

A live game top-up store for Cambodia — players choose a game and package, pay with Bakong KHQR, and track their order.

database models
41database models
Bakong payments
KHQRBakong payments
on Vercel
Liveon Vercel
tykhai.vercel.app

Overview

A production e-commerce site for selling game credits in Cambodia, live on Vercel. It is built with Next.js 16 and TypeScript, with Prisma and a PostgreSQL database of 41 models.

What I built

  • Game catalog with search, top-up packages for each game, and prices in USD or KHR.
  • Checkout with Bakong KHQR payment, order tracking, and a scheduled job that reconciles payments.
  • Sign in with email or Google (NextAuth), guest checkout, and a user wallet.
  • Referral program, daily missions, spin wheel, mystery boxes and a leaderboard.
  • Admin dashboard for orders, games and products, customers, banners, promo codes, resellers, a blog, and payment health.
  • Rate limiting with Upstash Redis, CSRF protection and input validation with Zod.
  • Responsive design that works well on phones.

Screenshots