pstk / paystack-magento2-module

pstk/paystack-magento2-module

  • Olayode Ezekiel
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass MIT

Are you the maintainer of pstk?

Packagento pulls pstk's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

Latest Version on Packagist
Software License
Total Downloads

Paystack Magento 2 Module

Paystack payment gateway Magento2 extension

Version: 3.0.4 (Paystack v2 Inline.js API)

Requirements

  • Magento 2.4.x
  • PHP 8.2+

Installation

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

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

To configure the plugin in Magento Admin:

  1. Go to Stores > Configuration > Sales > 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
    • Test/Live Public Key: Get from your Paystack dashboard
  3. Click Save Config.

Webhook Setup

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

  1. Go to Settings > API Keys & Webhooks on your Paystack dashboard
  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

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

Prerequisites

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

  • Magento 2.4.8-p3 via Mage-OS 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

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

Documentation

Support

For bug reports and feature requests directly related to this plugin, please use the issue tracker.

For general support or questions about your Paystack account, you can reach out by sending a message from our website.

Community

If you are a developer, please join our Developer Community on Slack.

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 for more information how you can do this.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
3.0.4 stable Fail Magento 2.4.7-2.4.9 Details 2026-03-06 12:30:44
3.0.3 stable Not tested Not yet tested Details 2026-02-27 11:03:26
3.0.2 stable Not tested Not yet tested Details 2026-02-26 10:07:19
3.0.1 stable Not tested Not yet tested Details 2026-02-25 14:04:58
3.0.0 stable Not tested Not yet tested Details 2026-02-17 20:49:21
2.5.0 stable Not tested Not yet tested Details 2025-11-25 20:42:43
2.4.1 stable Not tested Not yet tested Details 2020-02-25 20:58:59
2.3.5 stable Not tested Not yet tested Details 2019-12-11 17:39:39
v2.0.0 stable Not tested Not yet tested Details 2019-05-31 18:39:04
v1.0.2 stable Not tested Not yet tested Details 2019-02-05 10:12:07
1.0.0 stable Not tested Not yet tested Details 2018-02-20 16:05:17
0.9.17 stable Not tested Not yet tested Details 2017-11-14 13:14:08
0.9.16 stable Not tested Not yet tested Details 2017-07-17 19:27:44
0.9.15 stable Not tested Not yet tested Details 2017-06-28 17:17:16
0.9.13 stable Not tested Not yet tested Details 2017-03-22 18:29:37
0.9.12 stable Not tested Not yet tested Details 2017-03-06 14:34:25
0.9.11 stable Not tested Not yet tested Details 2017-02-23 18:12:31
0.9.10 stable Not tested Not yet tested Details 2017-02-23 17:38:17
0.9.9 stable Not tested Not yet tested Details 2017-02-23 17:15:29
0.9.8 stable Not tested Not yet tested Details 2017-02-23 15:23:13
0.9.7-beta beta Not tested Not yet tested Details 2017-02-23 15:21:09
0.9.6-beta beta Not tested Not yet tested Details 2017-02-23 15:18:52
0.9.4-beta beta Not tested Not yet tested Details 2017-02-23 15:09:57

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 163 12 errors, 151 warnings (ruleset: Magento2) — 93 auto-fixable with phpcbf
PHPMD Warning 2 2 rule violations (CyclomaticComplexity:1, UnusedFormalParameter:1)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 16 16
2.4.8 16 16
2.4.9 16 16

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT
Authors
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.