POST
/payment/initiateamount | number | ||
phone | string | ||
merchant_reference | string | ||
description | string | ||
currency | string | ||
provider | string | ||
expires_in | integer | ||
metadata | object | ||
customer_name, customer_email | string | ||
redirect_url | url | ||
callback_url | url |
Bash · requête
curl -X POST https://api-paycentral.gabondunumerique.com/api/v1/payment/initiate \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Idempotency-Key: commande-123" \
-H "Content-Type: application/json" \
-d '{
"amount": 5000,
"phone": "+24107123333",
"description": "Commande 123",
"merchant_reference": "CMD-123"
}'
JSON · réponse 201
{
"success": true,
"transaction_id": "01a1918d-9c00-723d-8d39-3194bfddc9e2",
"provider_reference": "01a1918d-9c01-7034-b541-d22530eb4b0d",
"status": "processing",
"redirect_url": null,
"message": "[SIMULATION] Demande envoyée au téléphone simulé. Confirmez dans la console du simulateur.",
"amount": 5000,
"currency": "XAF",
"fees": 75,
"net_amount": 4925,
"provider": "airtel",
"expires_at": "2026-10-31T11:42:19.000000Z"
}
+24107123456 | ||
+242061234567 | ||
+237691234567 | ||
+23562123456 |
GET
/payment/{transaction_id}/status
Bash · requête
curl https://api-paycentral.gabondunumerique.com/api/v1/payment/ID_DE_LA_TRANSACTION/status \ -H "X-Api-Key: sk_sandbox_VOTRE_CLE"
JSON · réponse 200
{
"success": true,
"transaction": {
"id": "01a1918d-9bc8-7383-b422-79d779e1c1ea",
"provider": "airtel",
"environment": "sandbox",
"amount": "5000.00",
"currency": "XAF",
"fees": "75.00",
"net_amount": "4925.00",
"status": "success",
"failure_reason": null,
"merchant_reference": "CMD-123",
"provider_reference": "01a1918d-9bc9-70c1-8519-840f9eb9728d",
"paid_at": "2026-10-31T10:44:02.000000Z",
"expires_at": "2026-10-31T11:42:19.000000Z",
"late_confirmed": false,
"late_confirmed_at": null,
"possible_duplicate": false,
"refunded_amount": "0.00",
"dispute_status": null,
"disputed_at": null,
"created_at": "2026-10-31T10:42:19.000000Z"
}
}
POST
/checkout/sessionsamount | number | ||
success_url | url | ||
cancel_url | url | ||
description | string | ||
metadata | object | ||
expires_in | integer | ||
customer_name, customer_phone, customer_email | string |
Bash · requête
curl -X POST https://api-paycentral.gabondunumerique.com/api/v1/checkout/sessions \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"description": "Abonnement Premium",
"success_url": "https://monsite.com/merci?commande=456",
"cancel_url": "https://monsite.com/panier?commande=456",
"metadata": { "order_id": "456" }
}'
JSON · réponse 201
{
"success": true,
"session_id": "01a1918d-9cbb-72ff-9650-019e6753648f",
"checkout_url": "https://paycentral.gabondunumerique.com/pay/01a1918d-9cbb-72ff-9650-019e6753648f",
"expires_at": "2026-10-31T11:42:19+00:00",
"amount": 10000,
"currency": "XAF"
}
processing | ||
pending | ||
success | ||
failed | ||
cancelled | ||
refunded |
401 | ||
402 | ||
403 | ||
404 | ||
409 | ||
422 | ||
429 | ||
5xx |
JSON · champ invalide (422)
{
"message": "Le champ montant doit être au moins égal à 100.",
"errors": { "amount": ["Le champ montant doit être au moins égal à 100."] }
}
JSON · refus métier (422)
{
"success": false,
"message": "Numéro de téléphone non reconnu ou opérateur non supporté (GA)"
}
JSON · référence déjà utilisée (409)
{
"success": false,
"message": "Une transaction existe déjà pour cette merchant_reference.",
"transaction_id": "01a1918d-9bc8-7383-b422-79d779e1c1ea",
"status": "processing"
}
mtn | MTN Mobile Money | CM, CG |
orange | Orange Money | CM, CG, CF, TD |
airtel | Airtel Money | CG, GA, TD, CF |
moov | Moov Money | GA, TD |
mastercard |