PHPackages                             papihack/payexpresse-php-client - 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. papihack/payexpresse-php-client

ActiveLibrary[API Development](/categories/api)

papihack/payexpresse-php-client
===============================

A PHP Client or SDK for PayExpresse Online Payment Gateway.

v1.0.1(5y ago)22MITPHPPHP ^7.3

Since Aug 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/PapiHack/payexpresse-php-client)[ Packagist](https://packagist.org/packages/papihack/payexpresse-php-client)[ RSS](/packages/papihack-payexpresse-php-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

PayExpresse - PHP API Client
============================

[](#payexpresse---php-api-client)

[![Coverage Status](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)](https://coveralls.io/github/PapiHack/payexpresse-php-client?branch=master)[![Issues](https://camo.githubusercontent.com/981786696d6c7bc26c7c11986e3f947ca1179d2013aa7aeb22868834ce1dffa8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f506170694861636b2f70617965787072657373652d7068702d636c69656e74)](https://camo.githubusercontent.com/981786696d6c7bc26c7c11986e3f947ca1179d2013aa7aeb22868834ce1dffa8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f506170694861636b2f70617965787072657373652d7068702d636c69656e74)[![PR](https://camo.githubusercontent.com/a0a7acf49b7e6e7a331d6f9cfeea7c06efbc805035c7afcb20f6290645713c72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f506170694861636b2f70617965787072657373652d7068702d636c69656e74)](https://camo.githubusercontent.com/a0a7acf49b7e6e7a331d6f9cfeea7c06efbc805035c7afcb20f6290645713c72/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f506170694861636b2f70617965787072657373652d7068702d636c69656e74)[![Latest Stable Version](https://camo.githubusercontent.com/ef0e45320fc30e27ec781d9ad6f721fe68f7daa0c80cd656a5783334627b364a/68747470733a2f2f706f7365722e707567782e6f72672f706170696861636b2f70617965787072657373652d7068702d636c69656e742f76)](//packagist.org/packages/papihack/payexpresse-php-client)[![Total Downloads](https://camo.githubusercontent.com/2ca4db119ac821997e5a9d42e47bc026d7743c31b8298b6f8abfed4dd055b208/68747470733a2f2f706f7365722e707567782e6f72672f706170696861636b2f70617965787072657373652d7068702d636c69656e742f646f776e6c6f616473)](//packagist.org/packages/papihack/payexpresse-php-client)[![Latest Unstable Version](https://camo.githubusercontent.com/f955d90823c48409fa686059c860193ac9ec4cadf36432059e2ef0e7563a400e/68747470733a2f2f706f7365722e707567782e6f72672f706170696861636b2f70617965787072657373652d7068702d636c69656e742f762f756e737461626c65)](//packagist.org/packages/papihack/payexpresse-php-client)[![License](https://camo.githubusercontent.com/8662c00dbc1fcdab35128a2ea165cdc66d7685a8002164159b9ba40b7198a7e0/68747470733a2f2f706f7365722e707567782e6f72672f706170696861636b2f70617965787072657373652d7068702d636c69656e742f6c6963656e7365)](//packagist.org/packages/papihack/payexpresse-php-client)[![Open Source Love](https://camo.githubusercontent.com/64efc0e0925311a4459cca485ac029eb921b79790dc07e0e9c4032b5b9c83b9b/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e706e673f763d313033)](https://github.com/ellerbrock/open-source-badges/)

This is a simple `SDK Client` or `API Client` for `PayExpresse Online Payment Gateway`.

Check out [PayExpresse Website](https://payexpresse.com/).

How to use it
-------------

[](#how-to-use-it)

First of all, install the package or library via composer

- `composer require papihack/payexpresse-php-client`

After that, setup the API config with your parameters like this :

```
    \PayExpresse\Config::setApiKey('your_api_key');
    \PayExpresse\Config::setApiSecret('your_api_secret');

    /*
     * you can set one of this two environment TEST or PROD
     * you can just set the env mode via \PayExpresse\Enums\Env::TEST or \PayExpresse\Enums\Env::PROD
     * Like the following example
     * !!! By default env is PROD !!!
     * You can also directly set test or prod as a string if you want
     * Like \PayExpresse\Config::setEnv('test') or \PayExpresse\Config::setEnv('prod')
    */

    \PayExpresse\Config::setEnv(\PayExpresse\Enums\Env::PROD);

    /*
     * The PayExpresse\Enums\Currency class defined authorized currencies
     * You can change XOF (in the following example) by USD, CAD or another currency
     * All allowed currencies are in \PayExpresse\Enums\Currency class
     * !!! Notice that XOF is the default currency !!!
    */

    \PayExpresse\Config::setCurrency(\PayExpresse\Enums\Currency::XOF);

    /* !!! Note that if you decide to set the ipn_url, it must be in https !!! */

    \PayExpresse\Config::setIpnUrl('your_ipn_url');
    \PayExpresse\Config::setSuccessUrl('your_success_url');
    \PayExpresse\Config::setCanceUrl('your_cancel_url');

    /*
     * if you want the mobile success or cancel page, you can set
     * the following parameter
    */

    \PayExpresse\Config::setIsMobile(true);
```

Then you can proceed with :

```
    $article_price = 15000;
    $article = new \PayExpresse\Invoice\InvoiceItem('article_name', $article_price, 'command_name', 'ref_command');

    /* You can also add custom data or fields like this */

    \PayExpresse\CustomField::set('your_field_name', 'your_field_value');

    /* Make the payment request demand to the API */

    \PayExpresse\PayExpresse::send($article);

    /* Get the API Response */

    $response = [
        'success'      => \PayExpresse\ApiResponse::getSuccess(),
        'errors'       => \PayExpresse\ApiResponse::getErrors(),
        'token'        => \PayExpresse\ApiResponse::getToken(),
        'redirect_url' => \PayExpresse\ApiResponse::getRedirectUrl(),
    ];
```

After that, if you have a success response, you can redirect your user to the `$response['redirect_url']` so that he can make the payment.
You can process the response as you wish by directly manipulating `\PayExpresse\ApiResponse`.

TODO
----

[](#todo)

- tests: cover all use cases ✅
- get the support team at [PayExpresse](https://payexpresse.com/) to clarify certain points

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

[](#contributing)

Feel free to make a PR or report an issue 😃

Regarding the tests, I use the elegant PHP Testing Framework [Pest](https://pestphp.com/) 😎

Oh, one more thing, please do not forget to put a description when you make your PR 🙂

Contributors
------------

[](#contributors)

- [M.B.C.M](https://itdev.herokuapp.com)[![My Twitter Link](https://camo.githubusercontent.com/ac4a3bd92f4f8b8ece10094e5921daa33604809da90627ab81622143afc5bfe4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f7468655f69745f6465763f7374796c653d736f6369616c)](https://twitter.com/the_it_dev)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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 ~19 days

Total

2

Last Release

2080d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26209571?v=4)[Meissa (Papi) Mbaye](/maintainers/PapiHack)[@PapiHack](https://github.com/PapiHack)

---

Top Contributors

[![PapiHack](https://avatars.githubusercontent.com/u/26209571?v=4)](https://github.com/PapiHack "PapiHack (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

apisdklibraryphp-sdkclient apiphp clientOrange Moneypaiementpaiement en ligneSénégalPlateforme de paiement en ligne AfriquePaiement SénégalPasserelle de paiement en ligneclient phppayexpressepayexpresse php sdkpayexpresse.com

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/papihack-payexpresse-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/papihack-payexpresse-php-client/health.svg)](https://phpackages.com/packages/papihack-payexpresse-php-client)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[qwen-php/qwen-php-client

robust and community-driven PHP SDK library for seamless integration with the qwen AI API, offering efficient access to advanced AI and data processing capabilities

213.2k1](/packages/qwen-php-qwen-php-client)

PHPackages © 2026

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