Ahmed Ghawi
عLet's talk
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.

GH-Cash's home page in a desktop browser, in Arabic
GH-Cash's hosted payment page on a phone: the exact amount, the wallet to pay and a countdown

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.

GH-Cash's API docs: the signed webhook and how to verify it

Want something like this?

Tell me what you're building. You'll get a scope, a price and a timeline within a day.

Start a conversation

More work