Contrat API proposé
Webhooks
Notifications asynchrones signées proposées. Le moteur de livraison est prévu.
Contrat de signature
En-têtes proposés : X-InfiniStack-Timestamp et X-InfiniStack-Signature. Signer horodatage + "." + corps brut avec HMAC-SHA256. Comparaison en temps constant.
Protection contre le rejeu
Tolérance proposée : 300 secondes. Conservez les identifiants et dédupliquez les livraisons. Les nouvelles livraisons ne doivent pas relancer de paiement.
Confirmer avant livraison
Répondez 2xx après réception durable. Traitez en tâche de fond et vérifiez le paiement côté serveur avant livraison.
POST /v1/paymentsContrat API proposé
curl https://sandbox.infinistack.example/v1/payments \
-H "Authorization: Bearer sk_test_example" \
-H "Idempotency-Key: order_sample_01" \
-H "Content-Type: application/json" \
-d '{
"amount": 10000,
"currency": "XAF",
"country": "TD",
"reference": "order_sample_01",
"payment_method": "airtel",
"customer": {
"phone": "+23566000000"
}
}'Identifiants test uniquement. Accès délivré après examen.

