PHPackages                             davidumoh/omnipay-gtpay - 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. davidumoh/omnipay-gtpay

ActiveLibrary[Payment Processing](/categories/payments)

davidumoh/omnipay-gtpay
=======================

A Gtpay Driver for PHP League Omnipay

v0.2.0(8y ago)3291MITPHP

Since Dec 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phronesis/Omnipay-Gtpay)[ Packagist](https://packagist.org/packages/davidumoh/omnipay-gtpay)[ RSS](/packages/davidumoh-omnipay-gtpay/feed)WikiDiscussions master Synced 2w ago

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

Omnipay: Gtpay
==============

[](#omnipay-gtpay)

**Gtpay gateway for the Omnipay PHP payment processing library**

[![Latest Version on Packagist](https://camo.githubusercontent.com/2325485093ee2de292584eefbf5c8d96ce5e8f73f15c041a17b2ec24bf3e97f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964756d6f682f6f6d6e697061792d67747061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/davidumoh/omnipay-gtpay)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3f90066311a30475fee01f737ca65d3b556c8575513a8efbb45dbbe69aaa1da2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068726f6e657369732f4f6d6e697061792d47747061792f6261646765732f6275696c642e706e67)](https://travis-ci.org/phronesis/Omnipay-Gtpay)[![Coverage Status](https://camo.githubusercontent.com/02b48e2e64db8a5df0ced087cb4c1adc43ecb91f0477e369186635afa7e2aebd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068726f6e657369732f4f6d6e697061792d47747061792f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/phronesis/omnipay-gtpay/code-structure)[![Quality Score](https://camo.githubusercontent.com/02eb72fc818e40ce02e920b2a894aa3f17d7ee7ac414a597b431b0248ef64d4c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068726f6e657369732f4f6d6e697061792d47747061792f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/phronesis/omnipay-gtpay)

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

Install
-------

[](#install)

Via Composer

```
$ composer require davidumoh/omnipay-gtpay
```

Usage
-----

[](#usage)

```
use Omnipay\Omnipay;

define('HASH_KEY','D3D1D05AFE42AD50818167EAC73C109168A0F108F32645C8B59E897FA930DA44F9230910DAC9E20641823799A107A02068F7BC0F4CC41D2952E249552255710F');

$gateway = Omnipay::create('Gtpay');

        $gateway->setMerchantId('17');
        $gateway->setHashKey(self::HASH_KEY);
        $gateway->setGatewayFirst('no');
        $gateway->setGatewayName(Gateway::GATEWAY_BANK);
        $gateway->setCurrency('NGN');

try {
    $formData = [
        'amount'=>70000.00,
        'items'=>[
            'tithe'=>[
                'label'=>'Tithes',
                'value'=>15000.00
            ],
            'seed'=>[
                'label'=>'Seed Offering',
                'value'=>25000.00
            ],
            'thanksgiving'=>[
                'label'=>'Thanksgiving Offering',
                'value'=>30000.00
            ]
        ],
        'notifyUrl'=>'http://payadmin.celz5.dev/transactions/notify',
        Data::GATEWAY_NAME=>Gateway::GATEWAY_WEBPAY,
        Data::TRANSACTION_MEMO=>'offerings',
        Data::CUSTOMER_NAME=>'Anastasia Umoh',
        Data::CUSTOMER_ID=>1,
        Data::TRANSACTION_ID=>$this->transactionId
        ];

    $response = $gateway->purchase($formData)->send();

    if ($response->isRedirect()) {
        $response->redirect;

    }
} catch (Exception $e) {
    $e->getMessage();
}
```

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/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/phronesis/Omnipay-Gtpay/issues), or better yet, fork the library and submit a pull request.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [David Umoh](https://github.com/phronesis)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3105d ago

### Community

Maintainers

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

---

Top Contributors

[![phronesis](https://avatars.githubusercontent.com/u/738839?v=4)](https://github.com/phronesis "phronesis (23 commits)")

### Embed Badge

![Health badge](/badges/davidumoh-omnipay-gtpay/health.svg)

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

###  Alternatives

[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5151.1M12](/packages/ignited-laravel-omnipay)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38108.5k17](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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