Accept mobile money in Cameroon
Collect MTN MoMo and Orange Money payments in Cameroon, in XAF, with one API call: charge a number or send customers to a hosted checkout, then confirm by webhook.
Most people in Cameroon pay with mobile money, on MTN MoMo or Orange Money. This guide shows how to take those payments from your own backend, from the first call to knowing the money arrived.
What you need
| Country | CM (Cameroon) |
| Currency | XAF |
| Networks | MTN MoMo (mtn_cm) and Orange Money (orange_cm) |
| Phone numbers | 9 digits in local format, for example 670000000 |
Do not hardcode that table. GET /v1/countries tells you the
number format for each country, and GET /v1/account/providers
tells you which networks your account can use right now.
Choose how the customer pays
There are two ways to collect, and both settle into the same balance and report through the same webhook.
- Charge a number. You already have the customer's phone number, so you send the prompt
yourself and they approve it on their phone without leaving your app. Use
POST /v1/collect/charge. - Hosted checkout. You send the customer to a TchokoPay page that lets them pick how to
pay, then returns them to you. Use
POST /v1/collect/checkout. Nothing about numbers or networks to build.
Charge an MTN MoMo or Orange Money number
curl -X POST https://connect.tchokopay.com/v1/collect/charge \
-H "Authorization: Bearer tchoko_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-4821-attempt-1" \
-d '{
"amount": 5000,
"currency": "XAF",
"country": "CM",
"provider": "mtn_cm",
"phone": "670000000",
"merchantReference": "order_4821"
}'For an Orange Money number, send "provider": "orange_cm" instead. The provider has to match
the number: if it does not, the request is refused before any prompt is sent, so a mistyped
number gives you a 400 to show your customer rather than a payment that never arrives.
The response is 202 Accepted with status PENDING. Nobody has paid yet. The prompt is
on its way to the phone, and the customer approves it there.
Know when it is paid
Register a webhook once and you are told the moment a payment
resolves, with collect.succeeded or collect.failed. Verify the signature before you act on
it. If you would rather poll, call
GET /v1/collect/{reference} every few seconds; the
payer has minutes to approve.
A payment moves from PENDING to PROCESSING and ends as SUCCESS or FAILED. The
status lifecycle lists every state and the failure categories.
Retry without charging twice
Send an Idempotency-Key header on every request. If your server times out and you send the
same request again with the same key, you get the original payment back, never a second
prompt on your customer's phone. See idempotency.
Pay people back out
The same API sends money to a mobile money number in Cameroon from your balance with
POST /v1/disburse. You name the amount, the
country, the network and the number. Disbursement is enabled per account, so ask us if it is
not on yours yet. The disbursing guide covers limits and what
happens when a payout fails.
Questions
Which currency do I price in? XAF for Cameroon. You can price a payment in other currencies too; each payment settles in whatever the payer actually used. See multi-currency.
What does the customer see? A payment prompt on their phone, which they approve on their network. With the hosted checkout they see a TchokoPay page first.
Which other methods does the hosted checkout offer? Mobile money, card, Bitcoin and Lightning.
What are the minimum and maximum amounts? They differ by currency. Read them from
GET /v1/limits rather than hardcoding them.
Where do I start? The quickstart takes you from a key to a working call in five minutes.
Disbursing
POST /v1/disburse sends money from your TchokoPay balance to a mobile money number. Key permissions, payout limits, large-amount review and failures.
Supported countries
Every country where you can collect and disburse, with the phone number format to expect. A country is listed only when one of its providers is usable.