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

ActiveLibrary[Payment Processing](/categories/payments)

ipop/omnipay-mobilpay
=====================

MobilPay driver for the Omnipay PHP payment processing library

1.4.1(4y ago)01121MITPHPPHP ^8.0

Since Jul 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AdrianPop/omnipay-mobilpay)[ Packagist](https://packagist.org/packages/ipop/omnipay-mobilpay)[ Docs](https://github.com/AdrianPop/omnipay-mobilpay)[ RSS](/packages/ipop-omnipay-mobilpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (15)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": {
        "daika7ana/omnipay-mobilpay": "~1.2.1"
    }
}
```

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;
}
```

### Token payments

[](#token-payments)

Create the request like a normal payment. Add the previously saved `token_id` to `token` element (after `amount`) and send the request like in the below example.

```
Http::asForm()->post('http://sandboxsecure.mobilpay.ro/card4', $response->getData());

```

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~79 days

Total

14

Last Release

1736d ago

PHP version history (3 changes)1.0.2PHP &gt;=5.4.0

1.3.0PHP &gt;=7.1

1.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1647789?v=4)[ipop](/maintainers/ipop)[@iPop](https://github.com/iPop)

---

Top Contributors

[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (12 commits)")[![AdrianPop](https://avatars.githubusercontent.com/u/894306?v=4)](https://github.com/AdrianPop "AdrianPop (9 commits)")[![tudor-gala](https://avatars.githubusercontent.com/u/7836866?v=4)](https://github.com/tudor-gala "tudor-gala (7 commits)")[![andrei930](https://avatars.githubusercontent.com/u/13468501?v=4)](https://github.com/andrei930 "andrei930 (6 commits)")[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (2 commits)")[![daika7ana](https://avatars.githubusercontent.com/u/11703528?v=4)](https://github.com/daika7ana "daika7ana (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasemobilpay

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ipop-omnipay-mobilpay/health.svg)](https://phpackages.com/packages/ipop-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)
