PHPackages                             clippings/omnipay-emp - 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. clippings/omnipay-emp

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

clippings/omnipay-emp
=====================

eMerchantPay library for Omnipay

0.2.2(9y ago)262.8kBSD-3-ClausePHP

Since Jun 11Pushed 8y agoCompare

[ Source](https://github.com/clippings/omnipay-emp)[ Packagist](https://packagist.org/packages/clippings/omnipay-emp)[ RSS](/packages/clippings-omnipay-emp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Omnipay: EMP
============

[](#omnipay-emp)

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

[![Build Status](https://camo.githubusercontent.com/61da792d2299e0aca104b39a59c63a2a213e4908079fbf6b4905304a62b4101c/68747470733a2f2f7472617669732d63692e6f72672f636c697070696e67732f6f6d6e697061792d656d702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/clippings/omnipay-emp)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3515434f486c1aa9b257c6894c0fde5e84806920dabf0649578c5ed41462227f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f6f6d6e697061792d656d702f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/clippings/omnipay-emp/)[![Code Coverage](https://camo.githubusercontent.com/b0ae136541c83b306b37ffa638cab4ee3610727b922ec4e216670762b32b7dc5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f6f6d6e697061792d656d702f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/clippings/omnipay-emp/)[![Latest Stable Version](https://camo.githubusercontent.com/8cc5970c2349df39e3b01003e754bc03cbf3ce595ed955edf458adcf1114141e/68747470733a2f2f706f7365722e707567782e6f72672f636c697070696e67732f6f6d6e697061792d656d702f762f737461626c652e706e67)](https://packagist.org/packages/clippings/omnipay-emp)

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements eMerchantPay support for Omnipay.

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

[](#installation)

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

```
{
    "require": {
        "clippings/omnipay-emp": "~0.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:

- eMerchantPay

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

In order to use this gateway, you need to provide apiKey and clientId.

```
$gateway = Omnipay::create('eMerchantPay');
$gateway->setApiKey('abc123');
$gateway->setClientId('abc123');
```

You can additionally configure Threatmatrix:

```
$threatmatrix = new Threatmatrix('organiazation id', 'client id');
$gateway->setThreatmatrix($threatmatrix);
```

For a successful purchase you need to provide `transactionReference`,`currency`,`clientIp`,`card` and`items`:

```
$purchase = $gateway->purchase(array(
    'currency' => 'GBP',
    'transactionReference' => 'referenceID1',
    'clientIp' => '95.87.212.88',
    'items' => array(
        array(
            'name' => 10,
            'price' => '5.00',
            'description' => 'Product 1 Desc',
            'quantity' => 2
        ),
        array(
            'name' => 12,
            'price' => '5.00',
            'description' => 'Shipping for Product 1',
            'quantity' => 1
        ),
        array(
            'name' => 12,
            'price' => '0.00',
            'description' => 'Promotion',
            'quantity' => 1
        ),
    ),
    'card' => array(
        'firstName' => 'Example',
        'lastName' => 'User',
        'number' => '4111111111111111',
        'expiryMonth' => 7,
        'expiryYear' => 2013,
        'cvv' => 123,
        'address1' => '123 Shipping St',
        'address2' => 'Shipsville',
        'city' => 'Shipstown',
        'postcode' => '54321',
        'state' => 'NY',
        'country' => 'US',
        'phone' => '(555) 987-6543',
        'email' => 'john@example.com',
    )
));
```

All of the fields above are supported, and depending on your eMerchantPay configuration - required. Items with negative prices are also supported. The name of each item must be a unique identifier. This is used for refunds later.

A full refund example:

```
$refund = $gateway->refund(array(
    'amount' => '200.00',
    'description' => 'Faulty Product',
    'transactionReference' => '51711614',
    'transactionId' => '1413980404',
));
```

You can also do partial refunds by providing the items directly. This type of refund ignores "amount":

```
$refund = $gateway->refund(array(
    'items' => array(
        array(
            'name' => '51945994',
            'price' => '10.00',
        ),
        array(
            'name' => '51946004',
            'price' => '5.00',
        )
    ),
    'description' => 'Faulty Product',
    'transactionReference' => '51711614',
    'transactionId' => '1413980404',
));
```

Where item "name" is the id, given by eMerchantPay in the data of the purchase response.

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/clippings/omnipay-emp/issues), or better yet, fork the library and submit a pull request.

License
-------

[](#license)

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

5

Last Release

3583d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

![](https://avatars.githubusercontent.com/u/745771?v=4)[Filip Georgiev](/maintainers/phgeorgiev)[@phgeorgiev](https://github.com/phgeorgiev)

![](https://avatars.githubusercontent.com/u/490439?v=4)[Zdravko Evstatiev](/maintainers/zedevs)[@zedevs](https://github.com/zedevs)

---

Top Contributors

[![dkyosev](https://avatars.githubusercontent.com/u/4113307?v=4)](https://github.com/dkyosev "dkyosev (13 commits)")[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (13 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (4 commits)")

### Embed Badge

![Health badge](/badges/clippings-omnipay-emp/health.svg)

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

###  Alternatives

[league/omnipay

Omnipay payment processing library

6.1k9.7M166](/packages/league-omnipay)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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