Your Stripe integration took months to get right. Webhooks are idempotent, subscriptions renew, finance trusts the reports. The last thing you want is to touch it.
Good news: adding African mobile money does not require touching it. Stripe's own list of payment methods 1 is where cards and the wallets built on cards live. Mobile money is a separate system, and it plugs in beside your card stack rather than inside it.
First, a precise statement of what Ultraner is, because the details matter for architecture. Ultraner processes cards through Stripe and accepts PayPal. It also collects mobile money in 14 African markets. There is no Stripe plugin or partnership; Ultraner is a separate payments provider that happens to use Stripe for its card flow.
Below are three patterns, from least to most change.
Pattern A: a separate path for African mobile money
You leave your Stripe integration exactly as it is. You add one more option to checkout that only appears for customers in live African markets: "Pay with mobile money".
When chosen, your server calls Ultraner:
POST /v0/payments/charge
X-API-Key: uk_live_...
{ "method": "mobile_money", "amount": 50000, "phone": "255712345678", "provider": "Airtel" }The customer gets a prompt on their phone and approves it. You get a webhook. Your fulfilment code treats that webhook the same way it treats a Stripe checkout.session.completed.
Good for: teams that want the smallest possible change. Trade-off: two providers, two webhook handlers, two reports. Your finance team reconciles African mobile money revenue separately.
Things to get right in Pattern A
- Idempotency. You already send idempotency keys to Stripe 3. Treat Ultraner's webhooks the same way: key on the transaction ID and make the handler safe to run twice.
- A unified order state. Map both providers into your own order statuses (
pending,paid,failed). Never let a provider's status leak into your domain model. - Routing. Decide which customers see the mobile money option. The phone number's country is the most reliable signal; Ultraner routes on it anyway.
Pattern B: African customers go through Ultraner for everything
For customers in African markets, you send the whole checkout to Ultraner. That includes cards, which Ultraner processes through Stripe, and PayPal. Everyone else stays on your existing Stripe integration.
The cleanest way is a hosted checkout session. You create a one-time cs_ session per order, send the customer to its URL or embed it, and they pick mobile money, card or PayPal themselves. One webhook comes back regardless of method.
Good for: teams that want one balance and one report for all African revenue, whatever the method. Trade-off: African card payments now flow through a different account from your other card payments.
This pattern has a practical upside for card buyers. Ultraner presents most currencies to the card directly through Stripe 2, so a Kenyan paying by card is charged in shillings, matching your local price. Where a currency cannot be presented, the card is charged in USD at a live rate and you are still credited the local amount.
Pattern C: one endpoint, method chosen by your UI
If you build your own checkout UI and want one integration for African customers, POST /v0/payments/charge takes method: mobile_money | card | paypal:
// card (Stripe), needs return_url/cancel_url
{ "method": "card", "amount": 50000, "currency": "TZS", "description": "Order #42",
"return_url": "https://your-app.com/success", "cancel_url": "https://your-app.com/cancel" }For card and PayPal you get a redirectUrl to the gateway's hosted page; Ultraner never sees card numbers. For mobile money there is no redirect, just the phone prompt.
Good for: teams with a custom checkout design who still want one backend integration for Africa. Trade-off: you own the waiting state, the phone input, and the country-to-network mapping in your UI.
Subscriptions: the part that is genuinely different
If you bill monthly, read this twice.
Stripe Billing works by charging a stored card on schedule. Mobile money has no stored credential on any African network; nobody can charge a wallet without the owner approving it. So:
- Card subscriptions through Ultraner are real Stripe subscriptions. Stripe owns the schedule.
- Mobile money subscriptions are run by Ultraner's scheduler, which sends a fresh prompt each interval. The customer approves every charge.
POST /v1/recurring/plans takes a channel of mobile_money, card or paypal. Webhooks follow one vocabulary across all three: recurring.activated, recurring.success, recurring.past_due, recurring.failed, recurring.cancelled. Map them into your existing subscription states and your entitlement logic will not care which rail a customer is on. The subscriptions capability has the full detail.
Your entitlement code should not know which rail paid. Map every provider's events into your own states at the edge.
Money: two balances or one
With Pattern A you have a Stripe balance and an Ultraner balance. With Pattern B, all African revenue sits in Ultraner.
Either way, the Ultraner balance settles to your bank account by wire, in any country. Collections carry no Ultraner fee. Money leaving carries a flat 3%, plus 1% for an international transfer outside the United States. The rail's own charge varies by market and can be quoted per payment before you take it. The breakdown is on pricing.
Testing without breaking production
Use a uk_test_ key against the sandbox. Every method works there: mobile money simulates the phone prompt, and card and PayPal redirect to a hosted confirm-or-fail page, so you never need a real card or a real phone. Your Stripe test mode stays untouched.
Which pattern should you pick?
| If you... | Pick |
|---|---|
| Want the smallest change and can live with two reports | A |
| Want all African revenue in one place, any method | B |
| Have a custom checkout and want one African backend | C |
Most teams start with A in one market, prove conversion, then move to B once African revenue is large enough that finance wants it in one place.
The docs show every endpoint used above, and the Tanzania and Kenya pages list the live networks per market.




