Client project · Digital Game Store: Web, API & Telegram Bot with a Full Back-Office
MasterBazi
An online store for digital game products (delivery codes and game accounts) that sells through a web storefront, a REST API and a Telegram bot. Every channel runs on the same transactional core with a double-entry ledger.
- My role
- Sole architect and developer
- Year
- 2026
- Built with
- Laravel 13 (PHP 8.3) · Livewire 4 · Tailwind CSS 4 · MySQL 8
By the numbers
- 80 Database tables
- 73 Domain actions
- 62 Test files
- 6 Sales channels
The Challenge
Selling codes and accounts means selling secrets that can be leaked, double-sold or disputed. The business also needed card-to-card payments with receipts, wallets, debts and instalments, and in-person sales, all reconciled to the rial.
The Approach
I built a modular monolith in which every channel (admin, storefront, API, Telegram and console) is a thin adapter over the same single-purpose actions. Status changes only go through state machines. Money is integer rial. Concurrency is handled with a global lock order, row locks, generated-column unique keys and an idempotency service.
Delivery secrets are encrypted with a dedicated key, and every reveal is logged. Every sensitive change is audited in the same transaction, and events fire only after commit.
The Outcome
The platform ships with a full back-office: inventory and reservations, the code and account pool, payment review and refunds, suppliers and expenses, reports with async export, trust and safety, roles, an audit log and backups. It is covered by 62 test files and documented in 15 design docs, including a shared-hosting runbook.
What I built
-
One action layer behind web, REST API, Telegram bot and console
-
State machines, a double-entry ledger and integer-rial money
-
Encrypted code and account pool with audited reveals
-
Online, card-to-card, wallet and manual payments; debts and instalments
-
Locking, idempotency and after-commit events for safe concurrency
-
2FA, SMS OTP, trust and safety tools and a full audit log
Built with
More work
Interested in working together?