turndale/paystack
Composer 安装命令:
composer require turndale/paystack
包简介
A Laravel Package for Paystack payment integration for laravel 11 and above
关键字:
README 文档
README
A robust, Cashier-like Paystack integration package for Laravel 11+. This package provides an expressive, fluent interface to Paystack's subscription billing services, handling boilerplate subscription code so you can focus on building your application.
Documentation
For full documentation, usage guides, and API reference, please visit:
https://paystack.solentik.com/
Features
- Complete API Wrapper: Fluent interface for all Paystack API resources (Transactions, Subscriptions, Customers, etc.).
- Webhooks: Automatic handling of Paystack webhooks with event dispatching.
- Type Safety: Fully typed responses and resources.
- Testing: Fully tested with PHPUnit and Orchestra Testbench.
Requirements
- PHP 8.2+
- Laravel 11.0+
Installation
You can install the package via composer:
composer require turndale/paystack
After installing, publish the configuration file:
php artisan vendor:publish --tag=paystack-config
Add your Paystack keys to your .env file:
PAYSTACK_PUBLIC_KEY=pk_test_xxxx PAYSTACK_SECRET_KEY=sk_test_xxxx PAYSTACK_PAYMENT_URL=https://api.paystack.co
Quick Start
1. Use the Facade
You can access any Paystack resource using the Paystack facade.
use Turndale\Paystack\Facades\Paystack; // Initialize a transaction $response = Paystack::transaction()->initialize([ 'email' => 'customer@email.com', 'amount' => 5000 // NGN 50.00 ]); return redirect($response['data']['authorization_url']);
2. Manage Subscriptions
// Create a subscription Paystack::subscription()->create([ 'customer' => 'CUS_xxxx', 'plan' => 'PLN_xxxx' ]);
3. Transaction Splits
// Create a split Paystack::transactionSplit()->create([ 'name' => 'Percentage Split', 'type' => 'percentage', 'currency' => 'NGN', 'subaccounts' => [ ['subaccount' => 'ACCT_xxxx', 'share' => 20] ] ]);
Webhooks
The package automatically handles Paystack webhooks for you. Just set up your webhook URL in the Paystack Dashboard to point to:
https://your-domain.com/paystack/webhook
You can listen to events in your application:
use Turndale\Paystack\Events\PaymentSuccess; Event::listen(PaymentSuccess::class, function ($event) { // Handle successful payment... });
Contributing
Please see CONTRIBUTING.md for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
MIT
Support
If you find this package helpful, please consider:
turndale/paystack 适用场景与选型建议
turndale/paystack 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「discussions」 「issue-tracking」 「africa-payment paystack」 「ghana-payment-laravel」 「paystack-nigeria-laravel」 「open-source paystack」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 turndale/paystack 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 turndale/paystack 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 turndale/paystack 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The core repository for PHPFlasher, hosting the source code, contributions, issue tracking, and discussions for the PHPFlasher project. This mono-repo serves as the hub for development and community engagement.
Flarum extension to manage deleted (hidden) discussions
Discussion board for Laravel Liberu
Show 3 cards with hot discussions preview
Monitor your Laravel application logs in real-time through Telegram. This package delivers instant notifications of critical events directly to your Telegram channel, with support for threaded discussions and Markdown formatting.
Filament-based issue reporter with optional centralised TicketMate integration (GitHub issues + branded confirmation emails handled remotely).
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-22