Skip to content

Accept payments in Benin: MTN Mobile Money and Moov Money

Senfenico collects MTN Mobile Money and Moov Money (Moov Africa) payments in Benin. There is no OTP. The customer receives a payment request and approves it on their phone, and you wait for the confirmation.

Both operators follow the same flow; only the provider code changes.

MTN Mobile Money Moov Money
provider code mtn_bj moov_bj
Country Benin (XOF) Benin (XOF)
Number format 10 digits, no +229 (Senfenico adds the country code) 10 digits, no +229 (Senfenico adds the country code)
Confirmation Approval on the phone (pay_offline) Approval on the phone (pay_offline)
Hosted page No, use direct charges No, use direct charges
Test mode No No
Activation On request, in live mode, at contact@senfenico.com On request, in live mode, at contact@senfenico.com

Send the customer’s number as 10 digits, in Benin’s current national format, without +229 or spaces (for example 01XXXXXXXX). Any other length is rejected with 400 INVALID_DATA and the message Phone number must be 10 digits long.

The API does not check that the number belongs to the chosen operator. Check it on your side, or let the customer pick their operator.

Accept MTN Mobile Money or Moov Money payments

Section titled “Accept MTN Mobile Money or Moov Money payments”
  1. pay_offlineCustomer approves on their phone
  2. success
Benin charge lifecycle

The example uses MTN Mobile Money. For Moov Money, replace mtn_bj with moov_bj.

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: $SENFENICO_LIVE_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 5000, "ext_id": "ORD-42",
"payment_method_details":
{"provider": "mtn_bj", "phone": "0197000000"}}'

201 Created response:

{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-101431-MTN_BJ-4f5a6b7c8d",
"status": "pay_offline",
"display_text": "Veuillez finaliser la transaction sur votre téléphone",
"live_mode": true
}
}

Then:

  1. Show display_text (French for “please complete the transaction on your phone”) and ask the customer to approve the request on their phone.
  2. Wait for the charge.success webhook, or re-read GET /v1/payment/charges/{reference}/ about every 5 seconds.
  3. Fulfill the order only when the status is success.

There is nothing to submit, because POST /charges/submit does not apply to Benin charges.

If the operator rejects the request, the API returns 200 OK with status: false:

{
"status": false,
"message": "Transaction failed. An internal error occurred. Please try again later.",
"error_code": "INTERNAL_ERROR"
}

Create a new charge. The rejected charge may show up in your list with status pay_offline; ignore it.

Test mode is not available for Benin, and a call with an sk_test_ key fails. Do your end-to-end tests on Burkina Faso in test mode, then a first small real payment (100 XOF minimum) in live mode, for each operator you offer.

HTTP error_code When What to do
400 INVALID_DATA Number not 10 digits, amount out of range, or operator (mtn_bj, moov_bj) not enabled on your account. Fix the request, or ask for activation.
200 INTERNAL_ERROR The operator rejected the request (status: false). Retry with a new charge.
500 INTERNAL_ERROR or none Call in test mode, or unexpected error. Use an sk_live_ key. Otherwise, contact support with the time of the call.