PHPackages                             pstk/paystack-magento2-module - 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. pstk/paystack-magento2-module

ActiveMagento2-module[Payment Processing](/categories/payments)

pstk/paystack-magento2-module
=============================

Paystack Magento2 Module using \\Magento\\Payment\\Model\\Method\\AbstractMethod

3.0.4(2mo ago)76.0k↓50%15[2 PRs](https://github.com/PaystackHQ/plugin-magento-2/pulls)MITPHPCI passing

Since Feb 23Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/PaystackHQ/plugin-magento-2)[ Packagist](https://packagist.org/packages/pstk/paystack-magento2-module)[ RSS](/packages/pstk-paystack-magento2-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (37)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/43b363793b8f62766c0d17a15b5c3342a9b16fe1965d2f7f36cece10c3db26fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7073746b2f706179737461636b2d6d6167656e746f322d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pstk/paystack-magento2-module)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/353a996051bf1738aa1939550e19bba4808e6363c16df63902ff0c3c378ae105/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7073746b2f706179737461636b2d6d6167656e746f322d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pstk/paystack-magento2-module)

Paystack Magento 2 Module
-------------------------

[](#paystack-magento-2-module)

Paystack payment gateway Magento2 extension

**Version:** 3.0.4 (Paystack v2 Inline.js API)

Requirements
------------

[](#requirements)

- Magento 2.4.x
- PHP 8.2+

Installation
------------

[](#installation)

### Composer (Recommended)

[](#composer-recommended)

Go to your Magento2 root folder and run:

```
composer require pstk/paystack-magento2-module
php bin/magento module:enable Pstk_Paystack
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

### Manual Installation

[](#manual-installation)

Copy all files to `app/code/Pstk/Paystack/` in your Magento installation, then run:

```
php bin/magento module:enable Pstk_Paystack
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

Configuration
-------------

[](#configuration)

To configure the plugin in *Magento Admin*:

1. Go to **Stores &gt; Configuration &gt; Sales &gt; Payment Methods**.
2. Find **Paystack** and configure:
    - **Enabled**: Yes/No
    - **Title**: What customers see at checkout
    - **Integration Type**: Inline (Popup) or Redirect
    - **Test Mode**: Enable for sandbox testing
    - **Test/Live Secret Key**: Get from your [Paystack dashboard](https://dashboard.paystack.com/#/settings/developer)
    - **Test/Live Public Key**: Get from your [Paystack dashboard](https://dashboard.paystack.com/#/settings/developer)
3. Click **Save Config**.

### Webhook Setup

[](#webhook-setup)

For reliable payment confirmation (especially for the redirect flow), set up a webhook in your Paystack dashboard:

1. Go to **Settings &gt; API Keys &amp; Webhooks** on your [Paystack dashboard](https://dashboard.paystack.com/#/settings/developer)
2. Set the Webhook URL to: `https://yourdomain.com/paystack/payment/webhook`
3. The module handles `charge.success` events and automatically updates order status

Development Environment
-----------------------

[](#development-environment)

A Docker-based development environment is included in the `dev/` directory for contributors and testing.

### Prerequisites

[](#prerequisites)

- [Docker](https://www.docker.com/) (or [Rancher Desktop](https://rancherdesktop.io/) with `dockerd` runtime)
- A [Paystack test account](https://dashboard.paystack.com/#/signup)

### Quick Start

[](#quick-start)

```
cd dev
cp .env.example .env     # Add your Paystack test keys
docker compose up -d      # First run builds the image (~5 min) and installs Magento (~3 min)
bash setup.sh             # Enables module, creates test products, configures everything
```

Once complete you'll see:

```
============================================
  Setup complete!

  Storefront:  http://localhost:8080
  Admin panel: http://localhost:8080/admin
  Admin login: admin / Admin12345!

  Test card:   4084 0840 8408 4081
  Expiry:      12/30
  CVV:         408
  PIN:         0000
  OTP:         123456
============================================

```

### What's Included

[](#whats-included)

- **Magento 2.4.8-p3** via [Mage-OS](https://mage-os.org/) public mirror (no Adobe marketplace auth needed)
- **OpenSearch 2.19.1** + **MariaDB 10.6**
- **5 test products** with images and a configured homepage
- **Paystack payment** pre-configured in test mode (inline popup)
- Container names: `paystack-magento`, `paystack-db`, `paystack-search`

### Tear Down

[](#tear-down)

```
cd dev
docker compose down        # Stop containers (preserves data)
docker compose down -v     # Stop containers and delete all data
```

Documentation
-------------

[](#documentation)

- [Paystack Documentation](https://developers.paystack.co/v2.0/docs/)
- [Paystack Helpdesk](https://paystack.com/help)

Support
-------

[](#support)

For bug reports and feature requests directly related to this plugin, please use the [issue tracker](https://github.com/PaystackHQ/plugin-magento-2/issues).

For general support or questions about your Paystack account, you can reach out by sending a message from [our website](https://paystack.com/contact).

Community
---------

[](#community)

If you are a developer, please join our Developer Community on [Slack](https://slack.paystack.com).

Contributing to the Magento 2 plugin
------------------------------------

[](#contributing-to-the-magento-2-plugin)

If you have a patch or have stumbled upon an issue with the Magento 2 plugin, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/PaystackHQ/plugin-magento-2/blob/master/CONTRIBUTING.md) for more information how you can do this.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~4 days

Total

24

Last Release

74d ago

Major Versions

0.9.17 → 1.0.02018-02-20

v1.0.2 → v2.0.02019-05-31

2.5.0 → 3.0.02026-02-17

PHP version history (2 changes)0.9.4-betaPHP ~5.5

0.9.6-betaPHP ~5.5||^7.0

### Community

Maintainers

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

---

Top Contributors

[![ibrahimlawal](https://avatars.githubusercontent.com/u/458428?v=4)](https://github.com/ibrahimlawal "ibrahimlawal (56 commits)")[![steveamaza](https://avatars.githubusercontent.com/u/15840315?v=4)](https://github.com/steveamaza "steveamaza (29 commits)")[![kielsoft](https://avatars.githubusercontent.com/u/3008599?v=4)](https://github.com/kielsoft "kielsoft (16 commits)")[![AwoyoToyin](https://avatars.githubusercontent.com/u/5974625?v=4)](https://github.com/AwoyoToyin "AwoyoToyin (14 commits)")[![tolu-paystack](https://avatars.githubusercontent.com/u/60101507?v=4)](https://github.com/tolu-paystack "tolu-paystack (9 commits)")[![jules-paystack](https://avatars.githubusercontent.com/u/253086233?v=4)](https://github.com/jules-paystack "jules-paystack (9 commits)")[![lukman-paystack](https://avatars.githubusercontent.com/u/58217917?v=4)](https://github.com/lukman-paystack "lukman-paystack (9 commits)")[![gertrude-paystack](https://avatars.githubusercontent.com/u/110245619?v=4)](https://github.com/gertrude-paystack "gertrude-paystack (7 commits)")[![tkalejaiye](https://avatars.githubusercontent.com/u/3721667?v=4)](https://github.com/tkalejaiye "tkalejaiye (4 commits)")[![onyekvchi](https://avatars.githubusercontent.com/u/6383110?v=4)](https://github.com/onyekvchi "onyekvchi (3 commits)")[![eyitemi-paystack](https://avatars.githubusercontent.com/u/57187385?v=4)](https://github.com/eyitemi-paystack "eyitemi-paystack (2 commits)")[![lukman008](https://avatars.githubusercontent.com/u/24724875?v=4)](https://github.com/lukman008 "lukman008 (2 commits)")[![tiku-paystack](https://avatars.githubusercontent.com/u/57668978?v=4)](https://github.com/tiku-paystack "tiku-paystack (2 commits)")[![eyeke04](https://avatars.githubusercontent.com/u/10612514?v=4)](https://github.com/eyeke04 "eyeke04 (1 commits)")

---

Tags

magentomagento-extensionmagento2magento2-modulepaymentspaystackpaystack-magento2

### Embed Badge

![Health badge](/badges/pstk-paystack-magento2-module/health.svg)

```
[![Health](https://phpackages.com/badges/pstk-paystack-magento2-module/health.svg)](https://phpackages.com/packages/pstk-paystack-magento2-module)
```

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