PHPackages                             lamine-minato/orange-money-gateway - 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. [API Development](/categories/api)
4. /
5. lamine-minato/orange-money-gateway

ActiveLibrary[API Development](/categories/api)

lamine-minato/orange-money-gateway
==================================

A PHP package to manage payments via Orange Money in your PHP applications.

v1.0.6(3mo ago)03801MITPHPPHP &gt;=8.0 &lt;9.0

Since May 27Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/minato223/orange-money-gateway)[ Packagist](https://packagist.org/packages/lamine-minato/orange-money-gateway)[ RSS](/packages/lamine-minato-orange-money-gateway/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (6)Versions (8)Used By (0)

Orange Money Payment Gateway
============================

[](#orange-money-payment-gateway)

A PHP package to manage payments via Orange Money in your PHP applications.

How it work ?
-------------

[](#how-it-work-)

- Use following command to install:

```
composer require lamine-minato/orange-money-gateway
```

- Create an OrangeMoneyAction object:

```
$action = new OrangeMoneyAction(
    orangeBearer: "bearer",
    merchantKey: "merchantKey",
    currency: OrangeMoneyCurrency::XOF,
    amount: 10000,
    returnUrl: "https://api.example.com/return",
    cancelUrl: "https://api.example.com/cancel",
    notifUrl: "https://api.example.com/notif",
    lang: "fr",
    reference: "Minato"
);
```

Make sure to replace variable by the corrects one

- Call execute method on OrangeMoneyGateway class:

```
$response = OrangeMoneyGateway::execute($action);
```

and Voila!

It will return a OrangeMoneyPaymentResponse object containing payToken and paymentUrl

In case of error, it will throw an exception of type OrangeMoneyException

You can also pass a configuration to the execute method of OrangeMoneyGateway if you want to modify the urls for retrieving the payment url

```
$action = new OrangeMoneyAction(...);

$config = new OrangeMoneyConfig(
    tokenUrl: "https://api.orange.com/oauth/v3/token",
    proccessUrl: "https://api.orange.com/orange-money-webpay/ml/v1/webpayment",
)

```php
$response = OrangeMoneyGateway::execute($action, $config);
```

### Handling Webhooks (Notifications)

[](#handling-webhooks-notifications)

When a payment is processed, Orange Money sends a notification to your `notifUrl`. You can use the `handleWebhook` method to process this notification.

```
#[Route('/payment/notif', name: 'payment_notification', methods: ['POST'])]
public function paymentNotification(Request $request): JsonResponse
{
    $payload = $request->toArray();
    $webhookResponse = OrangeMoneyGateway::handleWebhook($payload);

    if ($webhookResponse->isSuccess()) {
        // Update your order status to PAID
        // $webhookResponse->getNotifToken()
        // $webhookResponse->getTransactionId()
    } elseif ($webhookResponse->isFailed()) {
        // Update your order status to FAILED
    }

    return new JsonResponse(['status' => 'ok']);
}
```

Tip

Pour une intégration plus détaillée dans Symfony (services, sécurité, etc.), consultez le [Guide d'intégration Symfony](docs/symfony_integration.md).

```
$json = file_get_contents('php://input');
$payload = json_decode($json, true);

$webhookResponse = OrangeMoneyGateway::handleWebhook($payload);

if ($webhookResponse->isSuccess()) {
    // Success logic
}
```

Tip

Pour une intégration plus détaillée en PHP pur (autoload, script complet, etc.), consultez le [Guide d'intégration Pure PHP](docs/pure_php_integration.md).

License
-------

[](#license)

The MIT License (MIT). Please see [License](https://github.com/minato223/orange-money-gateway/blob/master/LICENSE) for more information.

Contributing
------------

[](#contributing)

Read [here](https://github.com/minato223/orange-money-gateway/blob/master/CONTRIBUTING.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance81

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~111 days

Recently: every ~125 days

Total

7

Last Release

100d ago

PHP version history (3 changes)1.0.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0

v1.0.3PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

v1.0.4PHP &gt;=8.0 &lt;9.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49767037?v=4)[laminediarra](/maintainers/laminediarra)[@laminediarra](https://github.com/laminediarra)

---

Top Contributors

[![minato223](https://avatars.githubusercontent.com/u/71100950?v=4)](https://github.com/minato223 "minato223 (13 commits)")

---

Tags

apipaymentOrange Money

### Embed Badge

![Health badge](/badges/lamine-minato-orange-money-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/lamine-minato-orange-money-gateway/health.svg)](https://phpackages.com/packages/lamine-minato-orange-money-gateway)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[api-platform/symfony

Symfony API Platform integration

384.5M129](/packages/api-platform-symfony)[api-platform/serializer

API Platform core Serializer

274.8M87](/packages/api-platform-serializer)

PHPackages © 2026

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