PHPackages                             youkeofficial/laravel-chapchap - 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. youkeofficial/laravel-chapchap

ActiveLibrary[Payment Processing](/categories/payments)

youkeofficial/laravel-chapchap
==============================

Intégration Laravel pour l'API de paiement ChapChap

v1.0.0(today)00MITPHPPHP ^8.1

Since Jul 28Pushed todayCompare

[ Source](https://github.com/youkeofficial/laravel-chapchap)[ Packagist](https://packagist.org/packages/youkeofficial/laravel-chapchap)[ RSS](/packages/youkeofficial-laravel-chapchap/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel ChapChap
================

[](#laravel-chapchap)

[![PHP](https://camo.githubusercontent.com/83dd395020c37276225039739320f6c8e7e99963ab21ee3d09282cb48dad2a60/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c7565)](https://php.net)[![Laravel](https://camo.githubusercontent.com/224cbca808a3313ee849ccbe5564af9397bdcf482596b0508cafae13d0bc9ba7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313025323025374325323031312d726564)](https://laravel.com)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Package Laravel pour intégrer l'API de paiement [ChapChap](https://chapchappay.com) (Guinée) par YoukeOfficial pour votre bonheur.

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

[](#installation)

```
composer require youkeofficial/laravel-chapchap
```

Le ServiceProvider et la Facade sont enregistrés automatiquement via le package auto-discovery de Laravel.

Publie le fichier de configuration :

```
php artisan vendor:publish --tag=chapchap-config
```

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

[](#configuration)

Ajoute ces variables dans ton `.env` :

```
CHAPCHAP_API_KEY=ta_cle_api
CHAPCHAP_ENCRYPT_KEY=ta_cle_hmac
CHAPCHAP_BASE_URL=https://chapchappay.com/api
CHAPCHAP_NOTIFY_URL=https://tonapp.com/payments/notify
CHAPCHAP_RETURN_URL=https://tonapp.com/payments/return
CHAPCHAP_CANCEL_URL=https://tonapp.com/payments/cancel
```

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

[](#utilisation)

### Via la Facade

[](#via-la-facade)

```
use Youkeofficial\ChapChap\Facades\ChapChap;

// Créer un paiement
$result = ChapChap::requestPayment(
    amount: 10000,
    orderId: 'ORDER-123',
    description: 'Paiement commande #123'
);

// Rediriger l'utilisateur
return redirect($result['payment_url']);
```

### Via l'injection de dépendances

[](#via-linjection-de-dépendances)

```
use Youkeofficial\ChapChap\Services\ChapChapService;

class PaymentController extends Controller
{
    public function __construct(private ChapChapService $chapchap) {}

    public function create(): RedirectResponse
    {
        $result = $this->chapchap->requestPayment(
            amount: 10000,
            orderId: 'ORDER-123',
            description: 'Paiement commande #123'
        );

        return redirect($result['payment_url']);
    }
}
```

### Vérifier un paiement

[](#vérifier-un-paiement)

```
$data = ChapChap::requestVerification($operationId);

// Normaliser le statut vers : 'created' | 'processing' | 'success' | 'cancel' | 'error'
$status = ChapChap::normalizeChapChapStatus($data['status']['code']);
```

### Méthodes disponibles

[](#méthodes-disponibles)

MéthodeDescription`requestPayment(int $amount, string $orderId, string $description, string $paymentMethod)`Initie un paiement, retourne `payment_url``requestVerification(string $operationId)`Vérifie le statut d'un paiement`normalizeChapChapStatus(string $status)`Normalise le code de statut ChapChapTests
-----

[](#tests)

```
composer install
vendor/bin/phpunit
```

Licence
-------

[](#licence)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33001331?v=4)[Youssouf Konate](/maintainers/youkeofficial)[@youkeofficial](https://github.com/youkeofficial)

---

Top Contributors

[![youkeofficial](https://avatars.githubusercontent.com/u/33001331?v=4)](https://github.com/youkeofficial "youkeofficial (2 commits)")

---

Tags

laravelpaymentchapchapguinea

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/youkeofficial-laravel-chapchap/health.svg)

```
[![Health](https://phpackages.com/badges/youkeofficial-laravel-chapchap/health.svg)](https://phpackages.com/packages/youkeofficial-laravel-chapchap)
```

###  Alternatives

[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3720.4k](/packages/linkxtr-laravel-qrcode)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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