All workCase study · GH-Cash service · Live
ShamCash payment gateway (GH-Cash) — payments confirmed automatically, by API
How I built GH-Cash: a read-only gateway that watches a merchant's ShamCash wallet, matches each incoming payment to its invoice and tells the merchant's server with a signed webhook.


The goal
ShamCash has no API for merchants. A shop that takes it checks every transfer by hand — open the app, compare the amount, mark the order paid — which is slow, easy to get wrong and impossible at 3 a.m. Merchants want payments confirmed automatically, without giving anyone the power to move their money.
What I built
- Wallet linking by QR: the merchant adds GH-Cash as a linked device from the ShamCash app, and can unlink it from the app at any time.
- An invoices API in SYP and USD: an exact amount, an expiry, and a hosted payment page with the wallet address and a countdown.
- A matcher that reads the wallet's latest transfers only while an invoice is pending, and pays the invoice whose amount, currency and time fit — never the same transfer twice.
- Webhooks signed with HMAC-SHA256 and a timestamp, retried with backoff up to eight times.
- Wallet sessions encrypted with AES-256-GCM in an isolated container; a merchant dashboard, API keys, and docs with a ready-made prompt for AI coding tools.
Where it is now
GH-Cash is live at sham.ghawi.app: $0.50 per wallet a month after a one-day free trial, or a one-off $5 setup where I link the wallet and wire the API into the merchant's store.

Want something like this?
Tell me what you're building. You'll get a scope, a price and a timeline within a day.
More work
- GH Store — one store on the web, in a Mini App and in a botHow I built and run GH Store: one catalogue, one wallet and one order history across a website, a Telegram Mini App and a bot, with payments that can't charge twice.
- A complete store inside one Telegram chatA client's Telegram store bot: catalogue, wallet top-ups, instant delivery from several providers, warranty and a full admin panel, on Cloudflare Workers.
- Stori — a complete online store for every shop, on its own accountsHow I built Stori: one codebase that ships a full online store — five templates, an Arabic admin panel, Sham Cash payments — to each shop, on the shop's own GitHub, Cloudflare and Supabase accounts.
- A bilingual game storeA web store for game top-ups and gift cards: supplier catalogue sync, automatic fulfilment, ShamCash wallet recharge and invoices, in Arabic and English.
- MikroTik manager (GH net) — learn, build and run MikroTik visuallyHow I built net.ghawi.app: a free MikroTik RouterOS platform with visual lessons, script wizards and a live console that reaches the router through a small bridge on the laptop.