2017 © Pedro Peláez
 

library omnipay-gtpay

A Gtpay Driver for PHP League Omnipay

image

davidumoh/omnipay-gtpay

A Gtpay Driver for PHP League Omnipay

  • Friday, December 29, 2017
  • by davidumoh
  • Repository
  • 1 Watchers
  • 2 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

Omnipay: Gtpay

Gtpay gateway for the Omnipay PHP payment processing library, (*1)

![Latest Version on Packagist][ico-version] Software License Build Status Coverage Status Quality Score, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements gtpay support for Omnipay., (*3)

Install

Via Composer, (*4)

``` bash $ composer require davidumoh/omnipay-gtpay, (*5)


## Usage ``` php 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 repository., (*6)

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found., (*7)

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 which you can subscribe to., (*8)

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*9)

Testing

bash $ composer test, (*10)

Security

If you discover any security related issues, please email umohdavid@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

29/12 2017

dev-master

9999999-dev

A Gtpay Driver for PHP League Omnipay

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Umoh

29/12 2017

v0.2.0

0.2.0.0

A Gtpay Driver for PHP League Omnipay

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Umoh

29/12 2017

dev-develop

dev-develop

A Gtpay Driver for PHP League Omnipay

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Umoh

29/12 2017

v0.1.0

0.1.0.0

A Gtpay Driver for PHP League Omnipay

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Umoh