fluxx/collect

Client PHP pour l'API Collect Mobile Money FluxxPay (v1)

Maintainers

Package info

github.com/fluxxpay/fluxx-collect-php

Homepage

pkg:composer/fluxx/collect

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-06-07 01:57 UTC

This package is auto-updated.

Last update: 2026-06-07 02:06:01 UTC


README

Client PHP pour l'API Collect FluxxPay v1.

Installation

composer require fluxx/collect

Exemple

use Fluxx\Collect\CollectClient;
use Fluxx\Collect\CollectException;

$collect = new CollectClient(getenv('FLUXX_API_KEY'));

$catalog = $collect->getOperators();

$result = $collect->createMobileMoney([
    'amount' => 10_000,
    'phone' => '2290166000000',
    'country' => 'BJ',
    'operator' => 'mtn',
    'reference' => 'ORDER-001',
], 'ORDER-001');

if (($result['status'] ?? '') === 'AWAITING_OTP') {
    $collect->confirmMobileMoney([
        'reference' => 'ORDER-001',
        'otp' => '123456',
    ]);
}

$status = $collect->getMobileMoneyStatus('ORDER-001', sync: true);

Documentation : https://docs.fluxxpay.me/fr/api-reference/collect
OpenAPI : https://cdn.fluxxpay.me/v1/collect/openapi.json

Tests d'intégration (sandbox)

export FLUXX_COLLECT_INTEGRATION=1
export FLUXX_API_KEY=<uuid-clé-test>
export FLUXX_COLLECT_BASE_URL=https://api.fluxxpay.me/api/v1

composer test:integration