pstk/paystack-magento2-module
Composer 安装命令:
composer require pstk/paystack-magento2-module
包简介
Paystack Magento2 Module using \Magento\Payment\Model\Method\AbstractMethod
README 文档
README
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:
- Go to Stores > Configuration > Sales > Payment Methods.
- 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
- Click Save Config.
Webhook Setup
For reliable payment confirmation (especially for the redirect flow), set up a webhook in your Paystack dashboard:
- Go to Settings > API Keys & Webhooks on your Paystack dashboard
- Set the Webhook URL to:
https://yourdomain.com/paystack/payment/webhook - The module handles
charge.successevents and automatically updates order status
Development Environment
A Docker-based development environment is included in the dev/ directory for contributors and testing.
Prerequisites
- Docker (or Rancher Desktop with
dockerdruntime) - A Paystack test account
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.
pstk/paystack-magento2-module 适用场景与选型建议
pstk/paystack-magento2-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.85k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2018 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pstk/paystack-magento2-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pstk/paystack-magento2-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-14