Search by

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

This package is auto-updated.

Last update: 2026-09-03 22:17:40 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

https://wariflow.app/docs

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