Documentation Technique

Intégration WebService v2 — JSON API

Utilisez l'endpoint suivant pour initier vos paiements. Toutes les requêtes doivent être envoyées en POST avec le header Content-Type: application/json.

1. Endpoint d'Initialisation

POST https://sandbox.paiementpro.net/webservice/onlinepayment/init/curl-init.php

2. Liste Complète des Paramètres

Paramètre Type Description
merchantIdSTRINGVotre ID Marchand (ex: PP-F324).
amountINTMontant de la transaction (ex: 1000).
descriptionSTRINGLibellé de l'achat.
channelSTRINGMoyen de paiement (CARD, OMCIV2, MOMOCI, WAVECI, etc).
countryCurrencyCodeSTRINGCode devise (ex: 952 pour XOF).
referenceNumberSTRINGRéférence unique de votre commande.
customerEmailSTRINGEmail du client.
customerFirstNameSTRINGPrénom du client.
customerLastnameSTRINGNom du client.
customerPhoneNumberSTRINGTéléphone du client.
notificationURLURLURL de votre Webhook (Notification silencieuse).
returnURLURLURL de redirection après paiement.
returnContextSTRINGDonnées additionnelles renvoyées en fin de session.

3. Exemple de Payload JSON

{
  "merchantId": "PP-F324",
  "amount": 1000,
  "description": "Abonnement Premium",
  "channel": "CARD",
  "countryCurrencyCode": "952",
  "referenceNumber": "REF-772105",
  "customerEmail": "test@gmail.com",
  "customerFirstName": "Ishola",
  "customerLastname": "Lamine",
  "customerPhoneNumber": "01234567",
  "notificationURL": "https://votre-site.com/webhook",
  "returnURL": "https://votre-site.com/retour",
  "returnContext": "{\"order_id\":\"123\", \"user\":\"88\"}"
}

4. Réponses du Système

✓ INITIALISATION RÉUSSIE
{
  "success": true,
  "message": "Initialisation effectuée avec succès",
  "url": "https://sandbox.paiementpro.net/sandbox.php?sessionid=7b1a...f92"
}
✕ ÉCHEC D'INITIALISATION
{
  "success": false,
  "message": "Echec de l'initialisation : Référence déjà utilisée"
}
Tester notre Sandbox maintenant