Skip to content
All articles

Taking Mobile Money without losing a franc: VotArena's payment architecture

· · 3 min read

In Cameroon, a platform that wants to sell has to take Mobile Money, on 3G connections and 360-pixel screens. VotArena, the event platform I founded, sells paid votes and tickets and pays the money out to organizers. It had to take real money from day one, with a single engineer to build it, run it and support it.

As of 23 September 2026, the production database held 3,472 paid votes, 52 confirmed ticket orders and 22 payouts actually paid to organizers. Here are the four decisions that made that loop reliable.

1. Never ask the buyer which operator they use

Cameroon's two main operators, MTN and Orange, are reached through different providers. NOKASH needs to know the operator in advance and refuses amounts under 200 FCFA. Tara Money accepts everything and detects the operator itself, but costs more per transaction.

Asking "MTN or Orange?" in the middle of a 100 FCFA vote loses the sale. The answer is a router, behind a single interface, that infers the operator from the number's prefix, sends MTN and Orange to NOKASH, and everything else — other countries, Wave, amounts under the minimum — to Tara. The voting code never knows which provider handled the payment.

2. Trace every franc without ever blocking a paying customer

Organizers and admins need to know where each payment stands: initiated, confirmed, credited, paid out. But a logging failure must never make a real payment fail.

Every step is written to an append-only log under a best-effort contract: if logging fails, the error goes to monitoring and the payment carries on. A projection builds a per-payment record (customer, number, tickets, event) within 2.5 seconds, and a rebuild job replays the log to catch up any missed projection.

3. Pay out without ever paying twice

Payouts go through the provider's disbursement API. Three traps showed up: a lost callback froze a request, a pending status was treated as a failure, and two admins clicking "Approve" at the same time could pay the same request twice.

The answer is a state machine persisted through conditional writes: every update checks the status, payment reference and number read before, and requires exactly one document to match. No database transactions: atomicity comes from conditional updates and unique indexes. Statuses are re-synced when the admin queue is opened, and a daily job catches the rest.

4. Make the commission public

The real problem of paid-vote contests is not technical: money lands on someone's personal number with no receipt, and nobody knows what the organizer receives. VotArena publishes its schedule: 20% on votes, 10% on tickets, 15% on music, 10% on the shop, 0% on registrations and booths.

It is a product decision as much as an architectural one: an audit trail at every step is only worth something if everyone knows the sharing rules.

A project that touches money, data or several sites?

In 30 minutes I will tell you what is risky, what is simple, and where to start.

Taking Mobile Money without losing a franc: VotArena's payment architecture