wariflow / sdk
Nom réservé par WariFlow. Le SDK officiel n'est pas encore publié — l'API s'utilise en HTTP.
dev-main
2026-08-03 21:55 UTC
Requires
- php: >=8.1
This package is auto-updated.
Last update: 2026-08-03 21:59:47 UTC
README
Nom réservé. Ce paquet ne contient aucune fonctionnalité.
Il existe pour que le nom wariflow/sdk appartienne à WariFlow sur Packagist,
et à personne d'autre. Le SDK officiel n'est pas encore publié.
Utiliser WariFlow aujourd'hui
L'API est en HTTP et JSON : elle s'intègre sans dépendance particulière.
$reponse = file_get_contents('https://api.wariflow.app/api/transactions', false, stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => [ 'Authorization: Bearer ' . getenv('WARIFLOW_SECRET_KEY'), 'Content-Type: application/json', // Un rejeu ne crée pas un second débit. 'Idempotency-Key: ' . bin2hex(random_bytes(16)), ], 'content' => json_encode([ 'amount' => 5000, 'currency' => 'XOF', 'channel' => 'orange_money', 'customer' => 'Awa Traoré', 'description' => 'Commande #1234', ]), ], ])); echo json_decode($reponse, true)['reference'];
Depuis un serveur, jamais depuis le navigateur. Une clé secrète exposée côté client permet d'encaisser au nom du marchand.
Documentation
Le SDK officiel sera annoncé sur cette page. Si vous croisez un paquet WariFlow publié sous un autre compte, il ne vient pas de nous.
Éditeur
Dynamic Solutions Holdings — Abidjan, Côte d'Ivoire