PHPackages                             aramics/omnipay-paystack - 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. aramics/omnipay-paystack

ActiveLibrary[Payment Processing](/categories/payments)

aramics/omnipay-paystack
========================

Paystack gateway for Omnipay payment processing library

06PHP

Since Nov 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Aramics/omnipay-paystack)[ Packagist](https://packagist.org/packages/aramics/omnipay-paystack)[ RSS](/packages/aramics-omnipay-paystack/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Paystack
=================

[](#omnipay-paystack)

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

[![Maintainability](https://camo.githubusercontent.com/ac57b585bd42ab4849b28b572f736a4111f42c00a4541fc4cfa3cc92c7dc813d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30623733323965336337323565333063343334342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Aramics/omnipay-paystack/maintainability)[![Test Coverage](https://camo.githubusercontent.com/8ab91ac2bf25f870b185fa79840627f85dc4c95cb75fa9e6e9687a2c33028c88/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30623733323965336337323565333063343334342f746573745f636f766572616765)](https://codeclimate.com/github/Aramics/omnipay-paystack/test_coverage)[![Style CI](https://camo.githubusercontent.com/46653c4370e001e73c45ee2967394c6ab7f5e7b2900de8c89f9fad64453404e6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132313234363039342f736869656c64)](https://styleci.io/repos/121246094/shield)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Paystack support for Omnipay. refer to the API docs here:

Install
-------

[](#install)

Via Composer

```
$ composer require aramics/omnipay-paystack
```

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

[](#basic-usage)

### Get the Paystack redirect URL

[](#get-the-paystack-redirect-url)

```
use Omnipay\Omnipay;

$pay = Omnipay::create('Paystack')
    ->setSecretKey('YOUR_SECRET_KEY');
    ->purchase([
            'amount' => 2000,
            'transactionId' => 'transId',
            'currency' => 'NGN',
            'cancelUrl' => 'https://canclecallback',
            'returnUrl' => 'https://yourcallback',
        ]);
if ($pay->isRedirect()) {
   $pay->redirect(); //redirect to pay on paystack
}
```

### Check transaction status (from the Paystack ipn)

[](#check-transaction-status-from-the-paystack-ipn)

1. Configure &amp; setup an endpoint to receive the ipn message from Paystack
2. Listen for the message and use `getTransactionStatus` (please handle the http GET vars accordingly)

```
use Omnipay\Omnipay;

$status = Omnipay::create('Paystack')
    ->setSecretKey('YOUR_SECRET_KEY');
    ->completePurchase([
                'transactionId' => 'transId',
            ])
      ->send();
if ($status->isSuccessful()) {
    //give value to user
}
```

3. `$status` will be either paystack verify transaction object . Handle these statuses in your application workflow accordingly.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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/3ea6a42ff3cfb33c0108f1d71a6a1e72546fe55f012e0d1165084b049e37a00a?d=identicon)[aramics](/maintainers/aramics)

---

Top Contributors

[![Aramics](https://avatars.githubusercontent.com/u/29895599?v=4)](https://github.com/Aramics "Aramics (11 commits)")

### Embed Badge

![Health badge](/badges/aramics-omnipay-paystack/health.svg)

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

###  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)
