2017 © Pedro Peláez
 

library omnipay-pesapal

Pesapal gateway for Omnipay payment processing library

image

oneafricamedia/omnipay-pesapal

Pesapal gateway for Omnipay payment processing library

  • Wednesday, May 16, 2018
  • by theBadger
  • Repository
  • 9 Watchers
  • 3 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 8 Versions
  • 33 % Grown

The README.md

Omnipay: Pesapal

Pesapal driver for the Omnipay PHP payment processing library, (*1)

Maintainability Test Coverage Style CI Scrutinizer Code Quality, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Pesapal support for Omnipay. https://www.pesapal.com/ refer to the API docs here: http://developer.pesapal.com/, (*3)

Install

Via Composer, (*4)

``` bash $ composer require oneafricamedia/omnipay-pesapal, (*5)


## Basic Usage ### Get the pesapal iframe/redirect URL ``` php use Omnipay\Omnipay; $url = Omnipay::create('Pesapal') ->setCredentials( 'your_key', 'your_secret' ) ->setCallbackUrl('https://example.com/callback') ->getUrl( 'test@example.com', 'my_reference', 'description', 100 );

Check transaction status (from the pesapal ipn)

1) configure & setup an endpoint to receive the ipn message from pesapal 2) listen for the message and use getTransactionStatus (please handle the http GET vars accordingly), (*6)

``` php use Omnipay\Omnipay;, (*7)

$status = Omnipay::create('Pesapal') ->setCredentials( 'your_key', 'your_secret' ) ->getTransactionStatus( $_GET['pesapal_notification_type'], $_GET['pesapal_transaction_tracking_id'], $_GET['pesapal_merchant_reference'] );, (*8)

``` 3) $status will be either PENDING, COMPLETED, FAILED or INVALID. Handle these statuses in your application workflow accordingly., (*9)

TODO

1) Test coverage 2) add QueryPaymentStatusByMerchantRef support 3) add QueryPaymentDetails support, (*10)

The Versions

16/05 2018

dev-master

9999999-dev https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

16/05 2018

1.0.3

1.0.3.0 https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

05/03 2018

1.0.2

1.0.2.0 https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

05/03 2018

dev-change/HZTL-2430-transactionID

dev-change/HZTL-2430-transactionID https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

05/03 2018

dev-test2

dev-test2 https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

21/02 2018

1.0.1

1.0.1.0 https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

16/02 2018

1.0.0

1.0.0.0 https://github.com/OneAfricaMedia/omnipay-pespal

Pesapal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal

13/02 2018

0.1

0.1.0.0 https://github.com/OneAfricaMedia/omnipay-pespal

PesaPal gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by ROAM

payment pay gateway merchant purchase omnipay pesapal