Créer une intention de paiement
| Header | Requis | Description |
|---|---|---|
Authorization | ✅ | Bearer sk_xxx |
Content-Type | ✅ | application/json |
X-Idempotency-Key | Recommandé | Clé unique pour éviter les doublons |
| Paramètre | Type | Requis | Description |
|---|---|---|---|
amount | integer | ✅ | Montant en FCFA (min: 100) |
currency | string | Devise (défaut: XOF) | |
payment_method | string | ✅ | ORANGE_MONEY, WAVE, MOOV, CARD, VISA, MASTERCARD, GIM_UEMOA |
country | string | Code pays: ML, SN, CI | |
customer_phone | string | ✅ | Numéro de téléphone (+223…) |
customer_name | string | ✅ pour CARD | Nom du client (requis pour cartes) |
customer_email | string | ✅ pour CARD | Email du client (requis pour cartes) |
return_url | string | ✅ | URL de retour après paiement |
client_reference | string | Votre référence (order_id) | |
metadata | object | Données personnalisées |
| Champ | Description |
|---|---|
gateway_used | Identifiant technique interne (pour monitoring uniquement) |
routing_reason | Explication du routing choisi par SahelPay |