PHPackages                             chadrackkanza/flexpay - 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. chadrackkanza/flexpay

ActiveLibrary[Payment Processing](/categories/payments)

chadrackkanza/flexpay
=====================

Package FlexPay API

1.5(11mo ago)65381MITPHPPHP ^8.2

Since May 2Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/chadrackkanza/flexpay)[ Packagist](https://packagist.org/packages/chadrackkanza/flexpay)[ Docs](https://github.com/chadrackkanza/flexpay)[ RSS](/packages/chadrackkanza-flexpay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (12)Used By (0)

Package FlexPay API
===================

[](#package-flexpay-api)

For Laravel 9 and 10

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

[](#installation)

You can install the package via composer:

```
composer require chadrackkanza/flexpay
```

You can publish the config file with:

```
php artisan vendor:publish --tag="flexpay-config"
```

This is the contents of the published config file:

```
return [
    'token' => env('FLEXPAY_TOKEN'),
    'merchant' => env('FLEXPAY_MERCHANT'),
    'url_api' => env('FLEXPAY_URL_API','https://backend.flexpay.cd'),
    'url_api_card' => env('FLEXPAY_URL_API_CARD','https://cardpayment.flexpay.cd'),
    'url_c2b' => env('FLEXPAY_URL_C2B','/api/rest/v1/paymentService'),
    'url_b2c' =>  env('FLEXPAY_URL_B2C','/api/rest/v1/merchantPayOutService'),
    'url_card' => env('FLEXPAY_URL_CARD','/api/rest/v1/vpos/ask'),
    'url_check_transaction' => env('FLEXPAY_URL_CHECK','/api/rest/v1/check'),
    'url_get_order_number' => env('FLEXPAY_URL_GET_ORDER_NUMBER','/api/rest/v1/vpos/orderNumber'),
];
```

Usage
-----

[](#usage)

Add these lines in your .env file

```
FLEXPAY_TOKEN="YOUR_FLEXPAY_TOKEN"
FLEXPAY_MERCHANT="YOUR_FLEXPAY_MERCHANT"
FLEXPAY_URL_API="FLEXPAY_URL_API"
FLEXPAY_URL_API_CARD="FLEXPAY_URL_API_CARD"
```

Payment consumer to business

```
use chadrackkanza\Flexpay\Facades\Flexpay;
$response = Flexpay::c2b(
        "TEST0014521", // reference
        '243XXXXXXXXX', //phoneNumber
        '1500', //amount
        'cdf', //currency
        'https://mon-site.com', //callbackUrl
        1 //commission
   );
dd($response);
```

Payment business to consumer

```
use chadrackkanza\Flexpay\Facades\Flexpay;
$response = Flexpay::b2c(
        "TEST0014521", // reference
        '243XXXXXXXXX', //phoneNumber
        '1500', //amount
        'cdf', //currency
        'https://mon-site.com', //callbackUrl
        1 //commission
   );
dd($response);
```

Check the status of a payment request sent to FlexPay

```
use chadrackkanza\Flexpay\Facades\Flexpay;
$response = Flexpay::checkTransaction('YOUR_ORDER_NUMBER');
dd($response);
```

Payment ( e-money, qr-code and card)

```
use chadrackkanza\Flexpay\Facades\Flexpay;
$response = Flexpay::payment(
        "TEST0014521", // reference
        "Tests de paiement", // description
        10, // amount
        "USD", // currency
        "https://mon-site.com/callback.com", // callback_url
        "https://mon-site.com/approve.com", //approve_url
        "https://mon-site.com/cancel.com", // cancel_url
        "https://mon-site.com/decline.com", // decline_url
        "https://mon-site.com" // home_url
   );
dd($response);
```

Check the status of a payment ( e-money, qr-code and card) request sent to FlexPay

```
use chadrackkanza\Flexpay\Facades\Flexpay;
$response = Flexpay::getOrderNumber('YOUR_ORDER_NUMBER');
dd($response);
```

Credits
-------

[](#credits)

- [Chadrack KANZA](https://github.com/chadrackkanza)
- [Djoy Romeo](https://github.com/djoyromeo-git/FlexPayService)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance52

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~77 days

Recently: every ~118 days

Total

11

Last Release

330d ago

PHP version history (3 changes)v1.0.0PHP ^8.1

1.2PHP ^8.0

1.5PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e183c8a6ea569540fb57379352fb55b38d49c7245d103591e45143a3905d810?d=identicon)[chadrackkanza](/maintainers/chadrackkanza)

---

Top Contributors

[![chadrackkanza](https://avatars.githubusercontent.com/u/78562676?v=4)](https://github.com/chadrackkanza "chadrackkanza (30 commits)")[![donmbelembe](https://avatars.githubusercontent.com/u/10473277?v=4)](https://github.com/donmbelembe "donmbelembe (3 commits)")

---

Tags

ecommerceecommerce-websiteflexpaieflexpaympesaorangeorangemoneylaravelflexpayChadrack KANZA

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chadrackkanza-flexpay/health.svg)

```
[![Health](https://phpackages.com/badges/chadrackkanza-flexpay/health.svg)](https://phpackages.com/packages/chadrackkanza-flexpay)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

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