PHPackages                             adelowo/gbowo-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. adelowo/gbowo-paystack

ActiveLibrary

adelowo/gbowo-paystack
======================

A package providing extra plugins for Gbowo's Paystack Adapter

1.1.0(8y ago)2361[1 PRs](https://github.com/adelowo/gbowo-paystack/pulls)MITPHPPHP ~7.0

Since Mar 6Pushed 4y agoCompare

[ Source](https://github.com/adelowo/gbowo-paystack)[ Packagist](https://packagist.org/packages/adelowo/gbowo-paystack)[ RSS](/packages/adelowo-gbowo-paystack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Gbowo-Paystack - An extra set of plugins for Gbowo's Paystack adapter
---------------------------------------------------------------------

[](#gbowo-paystack---an-extra-set-of-plugins-for-gbowos-paystack-adapter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c5e4dbe6aa469ba81a177697a11e19260740d98b0152d9e5bf935ed40bbb9972/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164656c6f776f2f67626f776f2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adelowo/gbowo-paystack)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9de1c3b8ca5ac1f44c42e1b46b9319517acdd2e30d11f88ac2971e344f1f5811/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164656c6f776f2f67626f776f2d706179737461636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adelowo/gbowo-paystack)[![Scrutinizer Coverage](https://camo.githubusercontent.com/ead81c3e13f029a9de9b1eb7cd5e273f34caa6c438700b44fc36d79a19f9f58b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6164656c6f776f2f67626f776f2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adelowo/gbowo-paystack/?branch=master)[![Quality Score](https://camo.githubusercontent.com/d59152d2c0eff5d6eafdc60f2a58716b5e9c0a5e6b1668e7c543a7fc77856b81/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164656c6f776f2f67626f776f2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adelowo/gbowo-paystack)[![Total Downloads](https://camo.githubusercontent.com/c11d7abad45072746139ad0b72b7d9c2e866841a959f3fd2bb5115d76533f3e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164656c6f776f2f67626f776f2d706179737461636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adelowo/gbowo-paystack)

> This package is an add-on to the Paystack Adapter provided by [Gbowo](https://github.com/adelowo/gbowo) and is therefore not guaranteed to have the same API as that of an add-on package of any alternative payment adapter supported by [Gbowo](https://github.com/adelowo/gbowo)

- [Installation](#install)
- [Available Plugins](#plugins)

```
$ composer require adelowo/gbowo-paystack
```

### Usage

[](#usage)

[Gbowo's doc](https://github.com/adelowo/gbowo) is highly recommended and is a good place to start.

Depending on what you are trying to accomplish, you'd ideally want to take a look at all available plugins here:

> Only add plugins you need. There isn't a reason to add everything into the adapter.

- `Paystack\Customer\CreateCustomer` : Create a new customer

```
$paystack->addPlugin(new Paystack\Customer\CreateCustomer(PaystackAdapter::API_LINK));

$data = $paystack->createCustomer(["email" => "me@lanreadelowo.com", "first_name" => "Lanre", "last_name" => "Adelowo"]);

//$data contains the details of the newly created customer
```

- `Paystack\Customer\UpdateCustomer` : Update a customer's data

```
$paystack->addPlugin(new Paystack\Customer\UpdateCustomer(PaystackAdapter::API_LINK));

$data = $paystack->updateCustomer("customerCode", ["email" => "lanre@coolstartup.com"]);

//$data contains the details of the updated customer
```

- `Paystack\Customer\DeactivateAuthorization` : Deactivate the authorization code for a user. If you do this, you are essentially ***forgetting*** a user's card and would lose the ability to charge that card.

> Example usecase =&gt; When a user is deleting his account or deletes a card.

```
$paystack->addPlugin(new Paystack\Transaction\DeactivateAuthorization(PaystackAdapter::API_LINK));

$isDeactivated = $paystack->deactivateAuthorization("AUTH_cod3_h3r3");

//$isDeactivated is a boolean which truthiness determines if the authorization code was succesffuly deactivated
```

- `Paystack\Transaction\ExportTransactions` : Export all of your transactions with Paystack

```
$paystack->addPlugin(new Paystack\Transaction\ExportTransactions(PaystackAdapter::API_LINK));

//can also pass in an array into the method call,
//e.g ["settled" => true, "currency" => "NGN", "status" => "Some status"]
//The dictionary would be converted to a query string which is sent alongside the request.
//Do review the docs for valid params.
$pathToFile = $paystack->exportTransactions();

//$pathToFile would contain a link to a csv file which you then have to download
```

- `Paystack\Transaction\GetTransaction` : Fetch the details of a specific transaction

```
$paystack->addPlugin(new Paystack\Transaction\GetTransaction(PaystackAdapter::API_LINK));

$data = $paystack->getTransaction("20911");

//$data would contain everything paystack knows about that transaction
```

- `Paystack\Subscription\CreateSubscription` - Add a new subscription to the dashboard

```
$paystack->addPlugin(new Paystack\Subscription\CreateSubscription(PaystackAdapter::API_LINK));

$data = $paystack->createSubscription(string $customerCode, string $planCode, string $customerAuthCode = "");
//The customer auth code can be excluded as it is only useful for customers with multiple authorizations.
//Please check the docs.
```

- `Paystack\Subscription\GetAllSubscriptions` - Retrieve all subscriptions in the dashboard

```
$paystack->addPlugin(new Paystack\Subscription\GetAllSubscriptions(PaystackAdapter::API_LINK));

$data = $paystack->getAllSubscriptions();
```

- `Paystack\Subscription\GetSubscription` - Retrieve a certain subscription from the dashboard

```
$paystack->addPlugin(new Paystack\Subscription\GetSubscription(PaystackAdapter::API_LINK));

$data = $paystack->getSubscription("SUB_code");
```

- `Paystack\Plan\CreatePlan` - Adds a new plan to the dashboard

```
$paystack->addPlugin(new Paystack\Plan\CreatePlan(PaystackAdapter::API_LINK));

$params = ["name" => "some plan", "amount" => 1000, "interval" => "hourly"];
//visit the api docs to see all possible data that can be sent

$data = $paystack->createPlan($params);
```

- `Paystack\Plan\UpdatePlan` - Updates a plan in the dashboard

```
$paystack->addPlugin(new Paystack\Plan\UpdatePlan(PaystackAdapter::API_LINK));

$params = ["name" => "renaming this plan", "amount" => 2000, "interval" => "weekly"];
//visit the api docs to see all possible data that can be sent

$status = $paystack->updatePlan(
	"PLN_gx2wn530m0i3w3m",
         ["name" => "renaming this plan yet again", "amount" => \Gbowo\toKobo(200000), "interval" => "weekly"]);

```

- `Paystack\Bank\ListBanks` - Fetch a list of all banks known to Paystack

```
$paystack->addPlugin(new ListBanks(PaystackAdapter::API_LINK));

$banks = $paystack->listBanks();
// $paystack->listBanks(["perPage" => 20, "page" => 2]); //show 20 banks and show results from the second page (the results are paginated)
```

- `Paystack\Bank\GetBVN` - Fetch the details of a user's BVN (Bank Verification Number)

```
$paystack->addPlugin(new GetBVN(PaystackAdapter::API_LINK));
$data = $paystack->getBVN("12345678901"); //Must be 11 digits, else an exception is thrown
```

- `Paystack\Bank\GetAccountDetails` - Fetch the details of a user's account number.

```
$paystack->addPlugin(new GetAccountDetails(PaystackAdapter::API_LINK));

//Yeah, that's a valid account number. Run the code to get my bank details and throw me some cash :)
$data = $paystack->getAccountDetails(["account_number" => "0115544526", "bank_code" => "058"]));
```

- `Paystack\Bank\GetCardBIN` - Fetch the details of a card via it's BIN (Bank Identification number)

```
$paystack->addPlugin(new GetCardBIN(PaystackAdapter::API_LINK));
$data = $paystack->getCardBIN("123456");
```

- `Paystack\Customer\CheckPending` - Check the status of a previously pending transaction.

```
$paystack->addPlugin(new CheckPending(PaystackAdapter::API_LINK));
$data = $paystack->checkPending($transactionRef);
```

### Contributing

[](#contributing)

Awesome, I'd love that. Fork, send PR. But hey, unit testing is one honking great idea. Let's have more of that.

### Bug Reports, Issue tracking and Security Vulnerabilities

[](#bug-reports-issue-tracking-and-security-vulnerabilities)

Please make use of the [issue tracker](https://github.com/adelowo/gbowo-paystack/issues) for bug reports, feature request and others except Security issues. If you do discover a vulnerability, please send a mail to `me@lanreadelowo.com`.

### License

[](#license)

[MIT](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~132 days

Total

2

Last Release

3219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2675d3dc5a82caaf86b7a8220727d46d72b92ee23c02386d050fb0bc39f07aed?d=identicon)[adelowo](/maintainers/adelowo)

---

Top Contributors

[![adelowo](https://avatars.githubusercontent.com/u/12677701?v=4)](https://github.com/adelowo "adelowo (2 commits)")

---

Tags

gbowopaystackphp7paystackgbowo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adelowo-gbowo-paystack/health.svg)

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

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[yabacon/paystack-php

Helps make your Paystack API calls giving a stdClass object.

117429.0k11](/packages/yabacon-paystack-php)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[matscode/paystack

This package is for communicating with PAYSTACK API

1719.7k](/packages/matscode-paystack)[digikraaft/laravel-paystack-webhooks

Handle Paystack webhooks in a Laravel application

177.5k1](/packages/digikraaft-laravel-paystack-webhooks)

PHPackages © 2026

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