PHPackages                             business-mastery/omnipay-mobilpay - 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. business-mastery/omnipay-mobilpay

ActiveLibrary[Payment Processing](/categories/payments)

business-mastery/omnipay-mobilpay
=================================

MobilPay driver for the Omnipay PHP payment processing library

1.2.0(11y ago)71.5k24[3 PRs](https://github.com/BusinessMastery/omnipay-mobilpay/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 18Pushed 3y ago7 watchersCompare

[ Source](https://github.com/BusinessMastery/omnipay-mobilpay)[ Packagist](https://packagist.org/packages/business-mastery/omnipay-mobilpay)[ Docs](https://github.com/BusienssMastery/omnipay-mobilpay)[ RSS](/packages/business-mastery-omnipay-mobilpay/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (9)Used By (0)

Omnipay: MobilPay
=================

[](#omnipay-mobilpay)

**MobilPay driver for the Omnipay PHP payment processing library**

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.4+. This package implements [MOBILPAY](http://www.mobilpay.ro) support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "business-mastery/omnipay-mobilpay": "~1.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- MobilPay

**Initiating payment request**

```
$gateway = Omnipay::create('MobilPay');
$gateway->setMerchantId('1234-5678-9012-3456-7890');
$gateway->setPublicKey('/path/to/public.cer');

$response = $gateway->purchase([
    'amount'     => '10.00',
    'currency'   => 'RON',
    'orderId'    => 1,
    'confirmUrl' => 'http://example.com/ipn',
    'returnUrl'  => 'http://www.google.com',
    'details'    => 'Test payment',
    'testMode'   => true,
    'params'     => [
        'selected_package' => 1
    ]
])->send();

$response->redirect();
```

**Processing IPN requests**

```
$gateway = Omnipay::create('MobilPay');
$gateway->privateKeyPath('/path/to/private.key');

$response = $gateway->completePurchase($_POST)->send();
$response->sendResponse();

switch($response->getMessage())
{
    case 'confirmed_pending': // transaction is pending review. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "pending"

        break;
    case 'paid_pending': // transaction is pending review. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "pending"

        break;
    case 'paid': // transaction is pending authorization. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "open/preauthorized"

        break;
    case 'confirmed': // transaction is finalized, the money have been captured from the customer's account

        //update DB, SET status = "confirmed/captured"

        break;
    case 'canceled': // transaction is canceled

        //update DB, SET status = "canceled"

        break;
    case 'credit': // transaction has been refunded

        //update DB, SET status = "refunded"

        break;
}
```

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)repository.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/BusinessMastery/omnipay-mobilpay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 54.2% 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 ~27 days

Recently: every ~39 days

Total

8

Last Release

4128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b847bce0b5fe6ceee9f32f11b160a87ebe0516bbf2b8f95cd7b1a3ae06fbd25?d=identicon)[tudor-gala](/maintainers/tudor-gala)

---

Top Contributors

[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (13 commits)")[![tudor-gala](https://avatars.githubusercontent.com/u/7836866?v=4)](https://github.com/tudor-gala "tudor-gala (8 commits)")[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (2 commits)")[![IonutRusen](https://avatars.githubusercontent.com/u/15908431?v=4)](https://github.com/IonutRusen "IonutRusen (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasemobilpay

### Embed Badge

![Health badge](/badges/business-mastery-omnipay-mobilpay/health.svg)

```
[![Health](https://phpackages.com/badges/business-mastery-omnipay-mobilpay/health.svg)](https://phpackages.com/packages/business-mastery-omnipay-mobilpay)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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