Senimerge Shop
E-book storefront for Syarikat Senimerge, run as a managed service.
Cloudflare PagesD1

What it does
An e-book store for Syarikat Senimerge. Readers browse the catalogue, sign in with a magic link sent to their email (no password to forget), buy by bank transfer with a proof upload or pick up free titles, and download their books from their own library.
How it is built
- Cloudflare Pages with Pages Functions, D1 for the catalogue, customers and orders, and R2 for the book files.
- Checkout reads prices from the database only, so a tampered price in the request changes nothing.
- Downloads stream through the server instead of a shareable file link, and revoking an order cuts access at once.
- The card gateway sits behind its own adapter, so the store launched on free titles and bank transfer without waiting for it.
Run as a service
I host and run the store for the client, so they sell books and I look after the servers, the updates and the reports.