PHPackages                             mobiverse/appsnmobile-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. [Payment Processing](/categories/payments)
4. /
5. mobiverse/appsnmobile-payment

ActiveLibrary[Payment Processing](/categories/payments)

mobiverse/appsnmobile-payment
=============================

This is a Laravel package for the Apps N Mobile payment service

v0.1.14(4y ago)043MITPHPPHP ^8.0|^8.1

Since Oct 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/georgekofihagan/appsnmobile-payment)[ Packagist](https://packagist.org/packages/mobiverse/appsnmobile-payment)[ Docs](https://github.com/mobiverse/appsnmobile-payment)[ GitHub Sponsors](https://github.com/Mobiverse)[ RSS](/packages/mobiverse-appsnmobile-payment/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (13)Versions (16)Used By (0)

This is a Laravel package for the Apps N Mobile payment service
===============================================================

[](#this-is-a-laravel-package-for-the-apps-n-mobile-payment-service)

[![Latest Version on Packagist](https://camo.githubusercontent.com/223c88b8a894c89fdd2070bd23c00b6b788063fbe7f0884564d71827ba2e7385/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f626976657273652f617070736e6d6f62696c652d7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mobiverse/appsnmobile-payment)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0aa21d90819249b22c6bcece7ddf5413f19eb51697c1af6e15500202b99bfc73/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6f626976657273652f617070736e6d6f62696c652d7061796d656e742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/mobiverse/appsnmobile-payment/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3ac86e6f0c439a71ab028bbdcbf596988424e4ebf93b92d86808197348f24518/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d6f626976657273652f617070736e6d6f62696c652d7061796d656e742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/mobiverse/appsnmobile-payment/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ac889f3a75487d7d82f9b6e462a7c5ad6970e4ce63e50c5bff25a3579139fe6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f626976657273652f617070736e6d6f62696c652d7061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mobiverse/appsnmobile-payment)

\###Note: This is work in progress.

This package consumes the AppsnMobile payment APIs therefore you would require an account with ApsnMobile to use it.

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

[](#installation)

You can install the package via composer:

```
composer require mobiverse/appsnmobile-payment
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Mobiverse\AppsnmobilePayment\AppsnmobilePaymentServiceProvider" --tag="appsnmobile-payment-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Mobiverse\AppsnmobilePayment\AppsnmobilePaymentServiceProvider" --tag="appsnmobile-payment-config"
```

This is the contents of the published config file:

```
return [
    'baseurl' => env('MOMO_BASEURL', ''),
    'callback_url'=>env('MOMO_CALLBACK_URL',''),
    'debit_transaction_prefix'=>env('MOMO_DEBIT_TRANSACTION_PREFIX',''),
    'credit_transaction_prefix'=>env('MOMO_CREDIT_TRANSACTION_PREFIX',''),
    'debit_callback_url'=>env('MOMO_DEBIT_CALLBACK_URL',''),
    'credit_callback_url'=>env('MOMO_CREDIT_CALLBACK_URL',''),
    'auth'=>[
        'basic'=>[
            'user'=>env('MOMO_BASICAUTH_USR',''),
            'pass'=>env('MOMO_BASICAUTH_PWD','')
        ]
    ],
    'purchase'=>[
        'balance'=>[
            'reference'=>env('MOMO_PURCHASE_BALANCE_REFERENCE','')
        ]
    ]
];
```

Usage
-----

[](#usage)

```
$momo_transaction = [
    'msisdn' => '0244377919',
    'network' => MomoTransaction::VODAFONE,
    'amount' => 0.10,
    'payment_request_id' => 1,
    'transaction_id' => $transaction_id
];

\Mobiverse\AppsnmobilePayment\AppsnmobilePaymentFacade::executeDebitRequest($momo_transaction);
```

In the controller of your callback url add the following action:

```
public function debitCallback(\Mobiverse\AppsnmobilePayment\IAppsnmobilePayment $momoPaymentService, Request $request){
    $momoPaymentService->processDebitCallback($request->all());
    return response();
}
```

Implement listeners for the **PaymentSucceeded**, **PaymentFailed** and **PaymentPending** events. eg.

```
PaymentSucceeded::class => [
    SendReceipt::class,
],
PaymentFailed::class => [
    FailedPaymentNotification::class,
],
PaymentPending::class => [
    PaymentPaymentNotification::class,
]
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [George Hagan](https://github.com/georgekofihagan)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~13 days

Recently: every ~19 days

Total

15

Last Release

1473d ago

PHP version history (4 changes)v0.1.0PHP ^8.0

v0.1.12PHP ^8.1

v0.1.13PHP 8.0|^8.1

v0.1.14PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1142c408be63410a283b517586399407dc55293ff2eb63a24186b6630356ba1d?d=identicon)[georgekofihagan](/maintainers/georgekofihagan)

---

Top Contributors

[![georgekofihagan](https://avatars.githubusercontent.com/u/92057230?v=4)](https://github.com/georgekofihagan "georgekofihagan (27 commits)")

---

Tags

laravelmobiverseappsnmobile-payment

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/mobiverse-appsnmobile-payment/health.svg)

```
[![Health](https://phpackages.com/badges/mobiverse-appsnmobile-payment/health.svg)](https://phpackages.com/packages/mobiverse-appsnmobile-payment)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[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)
