Skip to content

Moov Money Burkina Faso payment API

Moov Money is Moov Africa Burkina’s mobile wallet. The customer can confirm the payment in two ways. By default, they receive an OTP by SMS and enter it in your app; otherwise, they approve on their phone through the USSD menu *555*6#.

provider code moov_bf
Country Burkina Faso (XOF)
Number format 8 digits, no +226
Confirmation OTP by SMS (send_otp) or USSD (pay_offline)
Hosted page Yes, if Moov Money is enabled on your account
Test mode Yes, for both modes

The number has 8 digits, with no country code or spaces. The second digit must be 0, 1, 2 or 3, as in 70XXXXXX, 71XXXXXX, 60XXXXXX or 52XXXXXX.

A number whose second digit is 4, 5, 6 or 7 is an Orange number, and the API rejects it with 400 INVALID_DATA and the message Invalid phone number for Moov BF.

const phone = input.replace(/\D/g, '').replace(/^226/, '');
const isMoov = /^\d[0-3]\d{6}$/.test(phone);

The payment_method_details.confirmation_method parameter picks the mode.

Value Status at creation What the customer does What you do
otp (default) send_otp Receives an OTP by SMS from Moov and enters it in your app. Submit the OTP to POST /v1/payment/charges/submit.
ussd pay_offline Dials *555*6# and approves the pending payment. Wait for charge.success (webhook or reading the charge).
  1. send_otpconfirmation_method: otp
    pay_offlineconfirmation_method: ussd
  2. success
    failed
Moov Money charge lifecycle

Depending on your account configuration, a Moov charge may be created as pay_offline even if you ask for otp. Always drive your interface from the returned data.status, never from the mode you requested.

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: $SENFENICO_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "ext_id": "ORD-42",
"payment_method_details":
{"provider": "moov_bf", "phone": "70000000"}}'
{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-101431-MOOV_BF-8b2c3d4e5f",
"status": "send_otp",
"display_text": "Veuillez entrer le code OTP reçu sur votre téléphone pour finaliser la transaction.",
"live_mode": false
}
}

At creation, Senfenico asks Moov to send the OTP to the customer. If the operator rejects the request at this step (unknown number, locked account, insufficient balance), the API returns 200 with status: false, and the charge becomes failed.

Then submit the OTP (no trailing /), as described in Submit the OTP. If the OTP is rejected, the charge stays send_otp, and the customer can re-enter the code.

Accept Moov Money payments by USSD code 5556#

Section titled “Accept Moov Money payments by USSD code 5556#”

Add "confirmation_method": "ussd" to the request:

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: $SENFENICO_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1000,
"payment_method_details": {"provider": "moov_bf",
"phone": "70000000", "confirmation_method": "ussd"}}'
{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-101431-MOOV_BF-9c3d4e5f6a",
"status": "pay_offline",
"display_text": "Composez *555*6# sur votre téléphone et suivez les instruction pour finaliser la transaction.",
"live_mode": false
}
}

The customer dials *555*6#, finds the pending payment and approves it. Senfenico then checks with Moov regularly, for roughly ten minutes, and moves the charge to success as soon as Moov confirms.

With an sk_test_ key, use one of these numbers with its amount.

In OTP mode, the charge is send_otp and you submit 123456. In USSD mode, the charge is pay_offline, then automatically becomes success about 5 seconds later; with another number or amount, it becomes failed.

error_code When What to do
INVALID_DATA (HTTP 400) Not a Moov number or not 8 digits, or amount out of range. Have the number corrected.
INVALID_ACCOUNT Number not registered with Moov Money. Offer another operator.
INSUFFICIENT_FUNDS Balance too low. Tell the customer.
ACCOUNT_LOCKED Moov Money account locked. Ask the customer to contact Moov.
UNAUTHORIZED_TRANSACTION Moov refuses the operation for this account. Offer another operator.
OTP_INVALID Wrong OTP. Let the customer re-enter the code on the same charge.
OTP_EXPIRED OTP expired. Create a new charge.
OTP_STILL_VALID An OTP already sent is still valid. Ask the customer to use the code they already received.
TRANSACTION_INVALID The transaction is no longer valid at Moov. Create a new charge.
EXTERNAL_API_ERROR, UNKNOWN_ERROR Technical error or unexpected Moov response. Try again later.

Except INVALID_DATA, these errors come with HTTP 200 and status: false. The messages to show the customer are in Error codes.