@fluxx/payout
v1.1.0
Published
Client HTTP pour l'API Payout Mobile Money FluxxPay
Maintainers
Readme
@fluxx/payout
Client HTTP léger pour l'API Payout Mobile Money FluxxPay.
Montants
amount est exprimé dans l’unité de la devise : 100 = 100 FCFA.
Install
npm install @fluxx/payoutUsage
import { FluxxPayout } from '@fluxx/payout'
const client = new FluxxPayout({ apiKey: process.env.FLUXX_API_KEY! })
await client.getOperators()
await client.createPayout(
{
amount: 100, // 100 FCFA
reference: 'WDR-123',
country: 'BJ',
operator: 'mtn',
phone: '+2290166000000',
},
{ idempotencyKey: crypto.randomUUID() },
)OpenAPI : https://cdn.fluxxpay.me/v2/payout/openapi.json
