PHPackages                             camoo/laravel-mobile-money-payment - 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. camoo/laravel-mobile-money-payment

ActiveLibrary[API Development](/categories/api)

camoo/laravel-mobile-money-payment
==================================

Official Laravel integration for the Camoo Payment API, providing service providers, facades, webhook handling, and a Cashier-like developer experience.

1.0(5mo ago)00MITPHPPHP ^8.1CI passing

Since Jan 18Pushed 5mo agoCompare

[ Source](https://github.com/camoo/laravel-payment)[ Packagist](https://packagist.org/packages/camoo/laravel-mobile-money-payment)[ Docs](https://www.camoo.hosting)[ RSS](/packages/camoo-laravel-mobile-money-payment/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Camoo Payment for Laravel
=========================

[](#camoo-payment-for-laravel)

A **first-class Laravel integration** for the **Camoo Payment API**, built on top of the official PHP SDK. This package provides a clean, expressive, and testable API for handling **cashouts**, **payment verification**, **account balance**, and **webhook validation** in Laravel applications.

---

Features
--------

[](#features)

- ✅ Laravel-native Service Provider
- ✅ Clean dependency injection (no static SDK usage)
- ✅ Cashier-like manager (`CamooPayManager`)
- ✅ Secure webhook signature verification (HMAC SHA256)
- ✅ PSR-4 compliant &amp; framework-agnostic SDK underneath
- ✅ Fully documented via OpenAPI + Postman

---

Documentation &amp; Resources
-----------------------------

[](#documentation--resources)

- 📘 **OpenAPI Documentation**[read](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camoo/payment-api/main/openapi.yaml)
- 📦 **Postman Collection**[download](https://raw.githubusercontent.com/camoo/payment-api/main/docs/postman/Camoo-Payment-API.postman_collection.json)
- 🧩 **Core PHP SDK**[repo](https://github.com/camoo/payment-api)

---

Requirements
------------

[](#requirements)

- **PHP 8.1+**
- **Laravel 10+**
- Composer

---

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

[](#installation)

Install the package via Composer:

```
composer require camoo/laravel-mobile-money-payment
```

Publish the configuration file:

```
php artisan vendor:publish --tag=camoo-payment-config
```

---

Configuration
-------------

[](#configuration)

Update your `.env` file:

```
CAMOO_PAYMENT_API_KEY=your_api_key
CAMOO_PAYMENT_API_SECRET=your_api_secret
CAMOO_PAYMENT_API_VERSION=v1
CAMOO_PAYMENT_DEBUG=false

CAMOO_WEBHOOK_SECRET=your_webhook_secret
```

Config file: `config/camoo-payment.php`

```
return [
    'api_key'     => env('CAMOO_PAYMENT_API_KEY'),
    'api_secret'  => env('CAMOO_PAYMENT_API_SECRET'),
    'api_version' => env('CAMOO_PAYMENT_API_VERSION', 'v1'),
    'debug'       => env('CAMOO_PAYMENT_DEBUG', false),

    'webhooks' => [
        'secret'            => env('CAMOO_WEBHOOK_SECRET'),
        'signature_header'  => 'X-Camoo-Signature',
        'timestamp_header'  => 'X-Camoo-Timestamp',
        'tolerance_seconds' => 300,
    ],
];
```

---

Getting Started
---------------

[](#getting-started)

This package exposes a **Cashier-like manager** you can inject anywhere in your application.

### Dependency Injection (Recommended)

[](#dependency-injection-recommended)

```
use Camoo\LaravelPayment\Services\CamooPayManager;

class PaymentController
{
    public function __construct(
        private CamooPayManager $camooPay
    ) {}

    public function cashout()
    {
        return $this->camooPay->cashout([
            'phone_number' => '+237612345678',
            'amount'       => 5000,
            'notification_url' => route('webhooks.camoo'),
        ]);
    }
}
```

---

Cashout Example
---------------

[](#cashout-example)

```
$response = $camooPay->cashout([
    'phone_number'      => '+237612345678',
    'amount'            => 5000,
    'currency'          => 'XAF',
    'external_reference'=> 'ORDER-12345',
]);

echo $response->id;
echo $response->status;
```

---

Verify a Payment
----------------

[](#verify-a-payment)

```
$payment = $camooPay->verify('934ca3f6-dad6-4503-ae36-c01ca3354183');

echo $payment->status;
```

---

Get Account Balance
-------------------

[](#get-account-balance)

```
$account = $camooPay->account();

echo $account->balance->amount;
echo $account->balance->currency->value;
```

---

Webhooks
--------

[](#webhooks)

Webhook routes are automatically loaded.

### Example Endpoint

[](#example-endpoint)

```
POST /webhooks/camoo
```

### Signature Verification

[](#signature-verification)

Webhook payloads are **automatically verified** using:

- HMAC SHA256
- Timestamp tolerance
- Configurable headers

You can inject the verifier manually if needed:

```
use Camoo\LaravelPayment\Contracts\WebhookSignatureVerifier;

public function handle(Request $request, WebhookSignatureVerifier $verifier)
{
    $verifier->verify($request);
}
```

---

Error Handling
--------------

[](#error-handling)

All API errors throw a unified exception:

```
use Camoo\Payment\Exception\ApiException;

try {
    $camooPay->cashout([...]);
} catch (ApiException $e) {
    logger()->error($e->getMessage(), [
        'code' => $e->getCode(),
    ]);
}
```

---

Testing
-------

[](#testing)

You can easily mock the manager in tests:

```
$this->mock(CamooPayManager::class)
    ->shouldReceive('cashout')
    ->once()
    ->andReturn($fakePayment);
```

---

Architecture Overview
---------------------

[](#architecture-overview)

```
Laravel App
 └── CamooPayManager
      ├── PaymentApi
      ├── AccountApi
      └── PaymentClient (SDK)
           └── HTTP Transport

```

This ensures:

- Clean separation of concerns
- Easy framework portability
- Long-term maintainability

---

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

[](#contributing)

1. Fork the repository
2. Create a feature branch
3. Follow **PSR-12**
4. Add tests where applicable
5. Submit a pull request

---

License
-------

[](#license)

This package is open-source software licensed under the **MIT License**.

---

Final Notes
-----------

[](#final-notes)

This package is designed to feel **native to Laravel**, while remaining **strictly aligned with the OpenAPI contract**.

If you need:

- Facade support
- Idempotency helpers
- Retry middleware
- Queue-based cashouts
- Multi-account support Feel free to open an issue or submit a PR!

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance70

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

167d ago

### Community

Maintainers

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

---

Top Contributors

[![camoo](https://avatars.githubusercontent.com/u/24289021?v=4)](https://github.com/camoo "camoo (1 commits)")

---

Tags

apilaravelsdkwebhookspaymentmobile-moneyCAMOOcashout

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/camoo-laravel-mobile-money-payment/health.svg)

```
[![Health](https://phpackages.com/badges/camoo-laravel-mobile-money-payment/health.svg)](https://phpackages.com/packages/camoo-laravel-mobile-money-payment)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[resend/resend-laravel

Resend for Laravel

1222.7M8](/packages/resend-resend-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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