Pays couverts
| Pays | Code | Devise |
|---|---|---|
| Côte d’Ivoire | CI | XOF |
URLs
| Type | URL |
|---|---|
| Portail dev | developer.orange.com |
| Token OAuth | https://api.orange.com/oauth/v3/token |
| Webpay | https://api.orange.com/orange-money-webpay/dev/v1/webpayment |
| USSD client | *144# |
Credentials requis
À renseigner dans Settings → Stores → Orange :| Champ | Type | Description |
|---|---|---|
client_id | text | Identifiant OAuth de votre application Orange Developer. |
client_secret | password | Secret OAuth associé. |
merchant_key | text | Clé marchand fournie par Orange après activation Webpay. |
Particularités
- OAuth client_credentials : Orange exige un flow
grant_type=client_credentialsavec un corpsapplication/x-www-form-urlencoded(pas du JSON). SandPay gère ça via le helper partagéoauthClientCredentials. - L’authentification combine Basic auth (
client_id:client_secreten base64) sur le token endpoint, puis Bearer sur les appels Webpay. - Réponse Webpay :
pay_token(string) etpayment_url(string). SandPay stocke lepay_tokencommeprovider_tx_id. - Webpay est un flow par redirection : SandPay simule ce parcours — l’utilisateur serait normalement redirigé vers
payment_urlpour saisir son PIN. - Les callbacks de retour (
return_url,cancel_url,notif_url) pointent verssandpay.dev/orange/*côté sandbox. - Le champ
lang: "fr"est forcé pour les marchés francophones.