PHPackages                             assemien-dev/money-fusion-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. assemien-dev/money-fusion-php

ActiveLibrary[Payment Processing](/categories/payments)

assemien-dev/money-fusion-php
=============================

SDK PHP officiel pour interagir avec l'API Money Fusion Pay (création et suivi de paiements).

v1.0.2(6mo ago)02MITPHPPHP &gt;=8.0

Since Nov 1Pushed 6mo agoCompare

[ Source](https://github.com/AssemienDev/money-fusion-php)[ Packagist](https://packagist.org/packages/assemien-dev/money-fusion-php)[ RSS](/packages/assemien-dev-money-fusion-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Money Fusion Payment - PHP SDK
==============================

[](#money-fusion-payment---php-sdk)

Cette bibliothèque PHP permet d’interagir facilement avec l’API de paiement **Money Fusion**. Elle facilite la **création** et la **récupération** des paiements via des requêtes HTTP sécurisées.

---

Installation
------------

[](#installation)

Installez la bibliothèque via **Composer** :

```
composer require assemien-dev/money-fusion-php
```

---

Utilisation
-----------

[](#utilisation)

### Importation

[](#importation)

```
use MoneyFusion\PaymentClient;
```

---

### Initialisation du client

[](#initialisation-du-client)

```
$client = new PaymentClient("YOUR_API_URL");
```

---

### Créer un paiement

[](#créer-un-paiement)

```
$payment = $client->createPayment(
    totalPrice: "10000",
    articles: [
        ["name" => "Article 1", "price" => "5000", "quantity" => 1]
    ],
    numeroSend: "0101010101",
    nomClient: "assemienDev",
    userId: 1,
    orderId: 123,
    returnUrl: "https://votre-domaine.com/callback",
    webhookUrl: "https://your-domain.com/my-webhook-url"
);

print_r($payment);
```

> ⚠️ **Note :**
>
> - `webhookUrl` doit **accepter les requêtes POST**.
> - `returnUrl` et `webhookUrl` doivent être **en HTTPS** avec un **nom de domaine valide**.

---

### Réponse attendue

[](#réponse-attendue)

```
{
    "statut": true,
    "token": "f5EJ33JYmxqosi8BvaEt",
    "message": "paiement en cours",
    "url": "https://www.pay.moneyfusion.net/pay/f5EJ33JYmxqosi8BvaEt"
}
```

---

### Récupérer un paiement

[](#récupérer-un-paiement)

```
$paymentInfo = $client->getPayment("8L5teSc5TaIkP3ds9Dlx");
print_r($paymentInfo);
```

---

### Réponse attendue

[](#réponse-attendue-1)

```
{
    "statut": true,
    "data": {
        "_id": "6748d365967cb4766fdd1616",
        "tokenPay": "8L5teSc5TaIkP3ds9Dlx",
        "numeroSend": "None",
        "nomclient": "assemienDev",
        "personal_Info": [{"userId": 1, "orderId": 123}],
        "numeroTransaction": "",
        "Montant": 475,
        "frais": 25,
        "statut": "paid",
        "moyen": "card",
        "return_url": "https://votre-domaine.com/callback",
        "createdAt": "2024-11-28T20:32:37.037Z"
    },
    "message": "details paiement"
}
```

---

Exemple complet
---------------

[](#exemple-complet)

```
require 'vendor/autoload.php';

use MoneyFusion\PaymentClient;

$client = new PaymentClient("https://api.moneyfusion.net/api/create-payment");

try {
    $payment = $client->createPayment(
        totalPrice: "10000",
        articles: [
            ["name" => "Article 1", "price" => "5000", "quantity" => 1]
        ],
        numeroSend: "0101010101",
        nomClient: "assemienDev",
        userId: 1,
        orderId: 123,
        returnUrl: "https://votre-domaine.com/callback",
        webhookUrl: "https://votre-domaine.com/webhook"
    );

    print_r($payment);

    // Exemple : récupération du paiement après confirmation
    $paymentInfo = $client->getPayment($payment['token']);
    print_r($paymentInfo);

} catch (Exception $e) {
    echo "Erreur : " . $e->getMessage();
}
```

---

Méthodes disponibles
--------------------

[](#méthodes-disponibles)

MéthodeDescription`createPayment()`Crée un nouveau paiement avec les détails de la commande`getPayment()`Récupère les informations d’un paiement à partir de son token---

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance67

Regular maintenance activity

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

191d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fba2be5bcf4db16b30ae0774be4de658d592943975cfd7f518e5783d3fd8ae7b?d=identicon)[AssemienDev](/maintainers/AssemienDev)

### Embed Badge

![Health badge](/badges/assemien-dev-money-fusion-php/health.svg)

```
[![Health](https://phpackages.com/badges/assemien-dev-money-fusion-php/health.svg)](https://phpackages.com/packages/assemien-dev-money-fusion-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
