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

ActiveLibrary[Payment Processing](/categories/payments)

teodoriu/omnipay-mobilpay
=========================

MobilPay driver for the Omnipay PHP payment processing library

v1.1.5(5y ago)1841[1 issues](https://github.com/teodoriu/omnipay-mobilpay/issues)[1 PRs](https://github.com/teodoriu/omnipay-mobilpay/pulls)MITPHPPHP &gt;=7.2.0

Since Jan 15Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/teodoriu/omnipay-mobilpay)[ Packagist](https://packagist.org/packages/teodoriu/omnipay-mobilpay)[ Docs](https://github.com/teodoriu/omnipay-mobilpay)[ RSS](/packages/teodoriu-omnipay-mobilpay/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (3)Versions (10)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": {
        "teodoriu/omnipay-mobilpay": "~1.0"
    }
}
```

And run composer to update your dependencies:

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

```

Or

```
$ composer require teodoriu/omnipay-mobilpay

```

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([
    'language' => 'en',
    'amount'     => '10.00',
    'currency'   => 'EUR',
    'orderId'    => 1,
    'confirmUrl' => 'http://example.com/ipn',
    'returnUrl'  => 'http://www.google.com',
    'details'    => 'Test payment',
    'testMode'   => true,
    'params'     => [
        'selected_package' => 1
    ],
    'billingAddress' => [
                'type'           => 'person',
                'firstName'      => 'first_name',
                'lastName'       => 'last_name',
                'email'          => 'email',
                'mobilePhone'    => 'phone',
                'address'        => 'address',
                'fiscalNumber'   => null,
                'identityNumber' => null,
                'country'        => 'Romania',
                'county'         => null,
                'bank'           => null,
                'iban'           => null,
                'city'           => 'Bucharest',
                'zipCode'        => '10000',
            ]
])->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/teodoriu/omnipay-mobilpay/issues), or better yet, fork the library and submit a pull request.

Credits
-------

[](#credits)

[@BusinessMastery](https://github.com/BusinessMastery/omnipay-mobilpay)

[@ciungulete](https://github.com/ciungulete/omnipay-mobilpay)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~43 days

Recently: every ~22 days

Total

8

Last Release

2003d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11290723?v=4)[Teodor B.](/maintainers/teodoriu)[@teodoriu](https://github.com/teodoriu)

---

Top Contributors

[![teodoriu](https://avatars.githubusercontent.com/u/11290723?v=4)](https://github.com/teodoriu "teodoriu (10 commits)")[![teodor-ideologiq](https://avatars.githubusercontent.com/u/54398746?v=4)](https://github.com/teodor-ideologiq "teodor-ideologiq (4 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (2 commits)")[![mend-bolt-for-github[bot]](https://avatars.githubusercontent.com/in/16809?v=4)](https://github.com/mend-bolt-for-github[bot] "mend-bolt-for-github[bot] (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasemobilpay

### Embed Badge

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

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

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

UnionPay gateway for Omnipay payment processing library

11358.1k2](/packages/lokielse-omnipay-unionpay)

PHPackages © 2026

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