PHPackages                             adwapay/adwapay-php - 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. adwapay/adwapay-php

ActiveLibrary[Payment Processing](/categories/payments)

adwapay/adwapay-php
===================

SDK marchand ADWAPAY — liens de paiement, remboursements, abonnements, vérification de webhooks (Mobile Money Cameroun).

v1.1.0(yesterday)01—0%MITPHPPHP &gt;=7.4

Since Aug 16Pushed yesterdayCompare

[ Source](https://github.com/adwapay/adwapay-php)[ Packagist](https://packagist.org/packages/adwapay/adwapay-php)[ Docs](https://www.adwapay.com)[ RSS](/packages/adwapay-adwapay-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

adwapay/adwapay-php
===================

[](#adwapayadwapay-php)

SDK marchand ADWAPAY (PHP ≥ 7.4) pour encaisser par **Mobile Money** au Cameroun (Orange Money, MTN MoMo…). Merchant SDK for accepting Mobile Money payments via ADWAPAY.

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

[](#installation)

```
composer require adwapay/adwapay-php
```

Usage
-----

[](#usage)

```
use Adwapay\AdwapayClient;
use Adwapay\Webhook;

$adwapay = new AdwapayClient(
    'https://apiv05.adwapay.com',
    getenv('ADWAPAY_MERCHANT_KEY'),
    getenv('ADWAPAY_SUBSCRIPTION_KEY'),
    getenv('ADWAPAY_APPLICATION')
);

// Lien de paiement / payment link
$link = $adwapay->createPaymentLink(['amount' => 5000, 'orderRef' => 'CMD-42']);
// → redirigez le client vers $link['url']

// Remboursement / refund
$adwapay->createRefund(['footprint' => $fp, 'amount' => 1500, 'idempotencyKey' => 'r-42']);

// Abonnements / subscriptions
$plan = $adwapay->createSubscriptionPlan(['name' => 'Pro', 'amount' => 2000, 'intervalDays' => 30]);
$adwapay->createSubscription(['planId' => $plan['planId'], 'customerMsisdn' => '6XXXXXXXX', 'meanCode' => 'ORANGE-MONEY']);

// Vérifier un webhook (corps BRUT requis) / verify a webhook (RAW body)
$raw = file_get_contents('php://input');
$ok = Webhook::verify(
    getenv('ADWAPAY_WEBHOOK_SECRET'),
    $raw,
    $_SERVER['HTTP_X_ADWAPAY_SIGNATURE'] ?? null,
    $_SERVER['HTTP_X_ADWAPAY_TIMESTAMP'] ?? null
);
```

Capacités / capabilities
------------------------

[](#capacités--capabilities)

- `createPaymentLink` / `getPaymentLinkStatus`
- `createRefund` / `listRefunds`
- `createSubscriptionPlan` / `listSubscriptionPlans` / `createSubscription` / `listSubscriptions` / `cancelSubscription`
- `Webhook::verify` / `Webhook::sign` — signature HMAC-SHA256, temps constant, anti-rejeu 5 min

Tests
-----

[](#tests)

```
php test/webhook-test.php
```

Devise / currency
-----------------

[](#devise--currency)

XAF (Franc CFA) — montants entiers / integer amounts.

Licence
-------

[](#licence)

MIT.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Total

3

Last Release

1d ago

### Community

Maintainers

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

---

Tags

paymentwebhookmobile-moneyOrange Moneymtn momoCameroonxafadwapay

### Embed Badge

![Health badge](/badges/adwapay-adwapay-php/health.svg)

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

PHPackages © 2026

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