PHPackages                             spondonit/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. [API Development](/categories/api)
4. /
5. spondonit/mobilpay

ActiveLibrary[API Development](/categories/api)

spondonit/mobilpay
==================

Laravel mobilpay wrapper around omnipay with omnipay-mobilpay driver

v1.1.0(1y ago)11.6kMITPHPPHP &gt;=5.3.0

Since Aug 9Pushed 1y agoCompare

[ Source](https://github.com/aoradev44/mobilpay)[ Packagist](https://packagist.org/packages/spondonit/mobilpay)[ RSS](/packages/spondonit-mobilpay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Mobilpay
========

[](#mobilpay)

Laravel 5 mobilpay wrapper around omnipay with omnipay-mobilpay driver Edit Add topics

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Composer](#composer)
    - [Laravel](#laravel)
- [Basic Usage](#basic-usage)
    - [Initiating Payment Request](#initiating-payment-request)
    - [Handle Reponse](#handle-reponse)
- [Options](#options)
    - [Order Id](#order-id)
    - [Amount](#amount)
    - [Currency](#currency)
    - [Details](#details)
    - [Confirm Url](#confirm-url)
    - [Return Url](#return-url)
    - [Test Mode](#test-mode)
    - [ Additional Params ](#additional-params)

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

[](#installation)

### Composer

[](#composer)

Require the package via composer

```
composer require adrianbarbos/mobilpay
```

Or add the package to your `composer.json` file.

```
{
    "require": {
        "adrianbarbos/mobilpay": "^1.0"
    }
}
```

And run `composer update` to get the latest version of the package.

### Laravel

[](#laravel)

Mobilpay comes with a service provider for Laravel. You'll need to add it to your `composer.json` as mentioned in the above steps, then register the service provider with your application.

**From Laravel 5.5, the service provider and facades will automatically get registered.**

Open `config/app.php` and find the `providers` key. Add `MobilpayServiceProvider` to the array.

```
...
Adrianbarbos\Mobilpay\MobilpayServiceProvider::class,
...
```

Add the required aliases to the list of class aliases in the same file.

```
...
'Omnipay' => Omnipay\Omnipay::class,
'Mobilpay'	=> Adrianbarbos\Mobilpay\Mobilpay::class,
...
```

Publish config.

```
php artisan vendor:publish --provider="Adrianbarbos\Mobilpay\MobilpayServiceProvider"

```

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

[](#basic-usage)

### Initiating Payment Request

[](#initiating-payment-request)

```
// controller function

Mobilpay::setOrderId(1)
        ->setAmount('10.00')
        ->setDetails('Some details')
        ->purchase();
```

### Handle Reponse

[](#handle-reponse)

```
// controller function

$response = Mobilpay::response();

$data = $response->getData(); //array

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

Options
=======

[](#options)

### Order id

[](#order-id)

```
/**
 * @param $value string
 * @return $this
 */

public function setOrderId($value)
```

### Amount

[](#amount)

```
/**
 * @param $value string
 * @return $this
 */

public function setAmount($value)
```

### Currency

[](#currency)

```
/**
 * @param $value string
 * @return $this
 */

public function setCurrency($value)
```

### Details

[](#details)

```
/**
 * @param $value string
 * @return $this
 */

public function setDetails($value)
```

### Confirm Url

[](#confirm-url)

```
/**
 * @param $value string
 * @return $this
 */

public function setConfirmUrl($value)
```

### Return Url

[](#return-url)

```
/**
 * @param $value string
 * @return $this
 */

public function setReturnUrl($value)
```

### Test Mode

[](#test-mode)

```
/**
 * @param $value boolean
 * @return $this
 */

public function setTestMode($value)
```

### Additional Params

[](#additional-params)

```
/**
 * @param $value array
 * @return $this
 */

public function setAdditionalParams($value)
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~480 days

Total

2

Last Release

533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/708bb0fe3093d4112749580a0f20541f0c307bb550c9205c9d263745d6c23155?d=identicon)[spondonit](/maintainers/spondonit)

---

Top Contributors

[![adrianbarbos](https://avatars.githubusercontent.com/u/6648011?v=4)](https://github.com/adrianbarbos "adrianbarbos (10 commits)")[![aoradev44](https://avatars.githubusercontent.com/u/136437166?v=4)](https://github.com/aoradev44 "aoradev44 (4 commits)")[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (3 commits)")[![firewizard](https://avatars.githubusercontent.com/u/1143980?v=4)](https://github.com/firewizard "firewizard (2 commits)")[![CosminBd](https://avatars.githubusercontent.com/u/37343923?v=4)](https://github.com/CosminBd "CosminBd (1 commits)")

### Embed Badge

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

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

92437.3k6](/packages/botman-driver-telegram)

PHPackages © 2026

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