承接 wontonee/paystack 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wontonee/paystack

Composer 安装命令:

composer require wontonee/paystack

包简介

Paystack Payment Gateway for Bagisto - Accept payments across Africa with Cards, Bank Transfer, Mobile Money & USSD

README 文档

README

Accept payments from customers across Africa using Paystack - one of Africa's leading payment processors.

License Bagisto

🌍 Supported Countries & Payment Methods

Countries

  • 🇳🇬 Nigeria
  • 🇬🇭 Ghana
  • 🇿🇦 South Africa
  • 🇰🇪 Kenya
  • And more across Africa

Payment Methods

  • 💳 Cards (Visa, Mastercard, Verve)
  • 🏦 Bank Transfer
  • 📱 Mobile Money
  • 📞 USSD
  • 💰 Bank Account
  • 🔄 QR Code

Supported Currencies

  • NGN (Nigerian Naira)
  • GHS (Ghanaian Cedi)
  • ZAR (South African Rand)
  • KES (Kenyan Shilling)
  • USD (US Dollar)

📋 Requirements

  • Bagisto 2.x
  • PHP 8.2 or higher
  • Laravel 11.x
  • Paystack Account (Sign up here)
  • SSL Certificate (Required for production)

Installation

Step 1: Install via Composer

composer require wontonee/paystack

Step 2: Publish Assets

php artisan vendor:publish --tag=paystack-assets

Step 3: Clear Cache

php artisan config:cache
php artisan route:cache
php artisan optimize:clear

⚙️ Configuration

1. Get Paystack Credentials

  1. Login to Paystack Dashboard
  2. Navigate to Settings → API Keys & Webhooks
  3. Copy your Public Key and Secret Key

2. Configure in Bagisto Admin

  1. Go to Admin Panel → Configuration → Sales → Payment Methods
  2. Find Paystack in the payment methods list
  3. Configure the following fields:
Field Description Required
Title Display name for payment method Yes
Description Description shown to customers No
Payment Method Icon Upload custom icon (100x50px recommended) No
Public Key Your Paystack Public Key (pk_test_ or pk_live_) Yes
Secret Key Your Paystack Secret Key (sk_test_ or sk_live_) Yes
Status Enable/Disable payment method Yes
  1. Click Save Configuration

🔧 How It Works

Payment Flow

  1. Customer Checkout: Customer selects Paystack and places order
  2. Transaction Initialization: System initializes transaction via Paystack API
  3. Redirect to Paystack: Customer redirected to Paystack payment page
  4. Payment Processing: Customer completes payment on Paystack
  5. Callback: Paystack redirects back with reference
  6. Verification: System verifies transaction with Paystack API
  7. Order Creation: Order created if payment successful

API Endpoints

All Transactions:

  • Initialize: https://api.paystack.co/transaction/initialize
  • Verify: https://api.paystack.co/transaction/verify/:reference

🧪 Testing

Test Mode

  1. Use API keys starting with pk_test_ and sk_test_
  2. Test with Paystack test cards
  3. No real money charged

Test Cards

Success:

Card Number: 4084 0840 8408 4081
CVV: 408
Expiry: Any future date (e.g., 12/25)
PIN: 0000
OTP: 123456

Insufficient Funds:

Card Number: 5061 0200 0000 0000 094

Declined:

Card Number: 5061 0203 4000 0000 07

More test cards: https://paystack.com/docs/payments/test-payments

📝 Important Notes

Amount Handling

  • Paystack requires amounts in kobo/cents (₦10 = 1,000 kobo)
  • System automatically converts amounts to kobo
  • Supports NGN, GHS, ZAR, KES, USD

Payment Status

  • success: Payment completed successfully
  • failed: Payment failed
  • abandoned: Payment not completed

Security

  • Always verify transactions on server-side
  • Never expose secret key on frontend
  • Use HTTPS for production

� Troubleshooting

Common Issues

1. "Payment initialization failed"

  • Solution: Check Public Key and Secret Key in admin configuration

2. "Payment verification failed"

  • Solution: Verify API keys are correct and match environment (test/live)

3. "Callback not working"

  • Solution: Ensure SSL certificate is valid (production) and callback URL is accessible

4. Route not found errors

  • Solution: Run php artisan route:cache and php artisan config:cache

5. Image not showing

  • Solution: Run php artisan vendor:publish --tag=paystack-assets --force

Debug Logs

Check logs in storage/logs/laravel.log for detailed error information.

🆘 Support

For support, contact:

📄 License

This package is proprietary software. All rights reserved by Wontonee.

PROPRIETARY LICENSE - Unauthorized copying, distribution, modification, or use of this software is strictly prohibited.

🔮 Upcoming Features

  • ✅ Webhook integration for real-time updates
  • ✅ Refund functionality from admin panel
  • ✅ Recurring payments support
  • ✅ Split payments

📚 Additional Resources

Developed with ❤️ by Wontonee

wontonee/paystack 适用场景与选型建议

wontonee/paystack 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wontonee/paystack 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wontonee/paystack 我们能提供哪些服务?
定制开发 / 二次开发

基于 wontonee/paystack 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 27
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-10-08