Case studies · Payments & fintech
ANKA Pay: multi-provider payments for African sellers
Card, mobile money and bank payments for African merchants selling worldwide, kept correct across 7 providers that each fail in their own way.
- €3.7M processed across 14,000+ payments
- 400+ merchants, buyers in 100+ countries
- 7 payment providers integrated or extended
- ~80% of ANKA Pay's commits since 2024
Context
ANKA (Afrikrea) is a pan-African marketplace ($60M+ in transactions across 175 countries). ANKA Pay lets African merchants take payments from buyers anywhere in the world: on ANKA, through payment links, on their own online stores through a WooCommerce plugin, or through a public REST API.
When I joined in January 2024, a first version had just launched: a pay-by-link checkout with card payments through Adyen and PayPal Express, built by another engineer in December 2023. Payment links already worked end to end. Over the next three years I became the lead engineer on ANKA Pay, with about 80% of its commits since 2024 and over 60% of its current code, and turned that first checkout into a multi-provider payments platform.
The challenge
Payment systems get harder as they connect more providers and serve more countries.
Each provider has its own integration model, payment states, callbacks and failure modes. A request can time out even though the provider charged the customer. Webhooks can arrive late, or never. A customer can retry, or two checkouts can run at the same time. Currencies behave differently too: some have no decimals, and taxes depend on where the buyer is.
The hard part is not accepting a payment. It is keeping ANKA’s view of every payment correct, so that merchants, support and finance know what actually happened, whatever the provider.
What I did
- Providers. I integrated or extended 7 payment providers. I integrated Stripe: I moved ANKA Pay to Stripe Checkout Session, then added Stripe Tax, zero-decimal currencies, payment in the provider’s currency, a shared Stripe client, credentials per brand and finally Stripe Elements (the card field on our own page). I built the Stripe Terminal point-of-sale system used at New York Fashion Week. I also integrated Flutterwave for ANKA Pay (francophone and Ghana mobile money, Nigerian bank transfers), PayPal card payments, Square (including its SDK), pawaPay and Monnify, and I extended and refactored the PayPlug integration.
- Callbacks and recovery. I built the callback handling for mobile money and bank transfers, and daily checks that recover payment updates a provider failed to send, with alerts when a provider stops responding.
- Reliability. I made payments reliable when a request is retried or two happen at once, to prevent duplicate charges, including parallel checkouts on the Terminal point-of-sale.
- Routing. Provider routing by country, shop and brand, which the team changes from the admin without a new release.
- Merchant tools. In-account payments, a choice of payment methods for buyers, and dispute handling.
- For developers and stores. I built the public REST API (payment links, orders, webhooks, settings and documentation) and, alone, the WooCommerce plugin (every commit in its repository).
- Other integrations. Mercury (bank invoices) and Veriff (identity checks).
Outside payments, I also made the whole ANKA codebase faster to test and ship: CI from 20+ to under 11 minutes, deploys from ~9 to 4.5 minutes.
How it works
Each provider’s code sits behind a common checkout flow, so every payment follows the same lifecycle in ANKA, whatever the provider. Provider states are mapped to one set of ANKA payment states.
Callbacks are verified before they change a payment. Because callbacks can be missed, background jobs look for payments whose final state never arrived, ask the provider, and recover the update.
Routing is configuration, not code: the providers a buyer sees depend on the country, the shop and the brand, and the team changes them from the admin.
All of this evolved inside a mature, running application. The base checkout, the payments table and the first providers existed before me, and other engineers added some providers and shared pieces along the way.
Result
- €3.7M processed across 14,000+ payments for 400+ merchants, from buyers in 100+ countries.
- 85k+ calls to the public API; 50+ merchants using the WooCommerce plugin.
- Stripe Terminal point-of-sale at New York Fashion Week: 470+ sales, about $80k.