PHPackages                             djade007/omnipay-interswitch - 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. djade007/omnipay-interswitch

ActiveLibrary[Payment Processing](/categories/payments)

djade007/omnipay-interswitch
============================

Interswitch driver for the Omnipay payment processing library

345PHP

Since Oct 22Pushed 9y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Interswitch
====================

[](#omnipay-interswitch)

**Interswitch driver for the Omnipay payment processing library**

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

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

[](#installation)

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

```
{
    "require": {
        "djade007/omnipay-interswitch": "dev-master"
    }
}
```

And run composer to update your dependencies:

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

```

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

[](#basic-usage)

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

```
$gateway = Omnipay::create('Interswitch');

$gateway->initialize([
    'macKey' => 'D3D1D05AFE42AD50818167EAC73C109168A0F108F32645C8B59E897FA930DA44F9230910DAC9E20641823799A107A02068F7BC0F4CC41D2952E249552255710F',
    'productId' => 6205,
    'payItemId' => 101,
    'currency' => 'NGN',
]);

$transaction = $gateway->purchase([
    'returnUrl' => '{URL}',
    'amount' => 100000,
    'transactionId' => {RANDOM_DIGITS}
]);

$response = $transaction->send();

if ($response->isSuccessful()) {
    echo('success');
} elseif ($response->isRedirect()) {
    return $response->redirect(); // this will automatically forward the customer to interswitch
} else {
    echo('fail');
}

```

**On Redirect Route {URL}**

```
$gateway = Omnipay::create('Interswitch');
// same initialize values
$gateway->initialize([
    'macKey' => 'D3D1D05AFE42AD50818167EAC73C109168A0F108F32645C8B59E897FA930DA44F9230910DAC9E20641823799A107A02068F7BC0F4CC41D2952E249552255710F',
    'productId' => 6205,
    'payItemId' => 101,
    'currency' => 'NGN'
]);

$response = $gateway->completePurchase(['txnref' => $_POST['txnref']])->send();

if ($response->isSuccessful()) {
    echo('success');
} else {
    echo "failed\n";
    echo $response->getMessage();
}

```

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c080dd056ba5b7a82cf585fee41b4fb4ba62691725c24e02ea8288005a3bd026?d=identicon)[djade007](/maintainers/djade007)

---

Top Contributors

[![djade007](https://avatars.githubusercontent.com/u/8323355?v=4)](https://github.com/djade007 "djade007 (5 commits)")

### Embed Badge

![Health badge](/badges/djade007-omnipay-interswitch/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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