Download the PHP package santosdave/paystack-wrapper without Composer
On this page you can find all versions of the php package santosdave/paystack-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package paystack-wrapper
Laravel Paystack Wrapper
A comprehensive, secure, and production-ready Laravel wrapper for the Paystack payment gateway API.
Features
- โ Complete API Coverage - All Paystack API endpoints covered
- ๐ Secure by Default - SSL verification, webhook signature validation
- ๐ Performance Optimized - Built-in caching for frequently accessed data
- ๐ Comprehensive Logging - Track all API interactions with sensitive data redaction
- ๐ฏ Type-Safe - Proper exception handling with custom exception classes
- ๐งช Fully Tested - Extensive test coverage
- ๐ฆ Framework Agnostic Core - Easy integration with Laravel
- ๐ Automatic Conversions - Currency amount conversion to/from subunits
- ๐จ Fluent API - Clean, intuitive method chaining
- ๐ Webhook Support - Secure webhook handling with signature verification
Table of Contents
- Requirements
- Installation
- Configuration
- Usage
- Transactions
- Customers
- Plans & Subscriptions
- Subaccounts
- Transfers
- Refunds
- Disputes
- Verification
- Payment Pages
- Payment Requests
- Dedicated Accounts
- Webhooks
- Error Handling
- Testing
- Security
- Contributing
Requirements
- PHP 8.1 or higher
- Laravel 10.x or 11.x
- GuzzleHTTP 7.5 or higher
Installation
Install via Composer:
Publish the configuration file:
Configuration
Add your Paystack credentials to .env:
Usage
Transactions
Customers
Plans & Subscriptions
Subaccounts
Transfers
Refunds
Disputes
Verification
Payment Pages
Payment Requests
Dedicated Accounts
Webhooks
Set up webhook handling in your routes:
Create a webhook controller:
Error Handling
The wrapper provides specific exception classes:
Testing
Run the test suite:
Run with coverage:
Security Features
- โ SSL Verification: Enforced in production environments
- โ Webhook Signature Validation: Verify webhook authenticity
- โ Sensitive Data Redaction: Automatic redaction in logs
- โ Secure Headers: Proper authentication headers
- โ Input Validation: Required field validation
- โ Rate Limiting: Graceful handling of rate limits
Performance
- โ Response Caching: Automatic caching for GET requests
- โ Connection Pooling: Efficient HTTP connection management
- โ Timeout Configuration: Configurable request timeouts
Currency Support
- NGN (Nigerian Naira) - Min: โฆ50.00
- USD (US Dollar) - Min: $2.00
- GHS (Ghanaian Cedi) - Min: โต0.10
- ZAR (South African Rand) - Min: R1.00
- KES (Kenyan Shilling) - Min: Ksh. 3.00
- XOF (West African CFA Franc) - Min: XOF 1.00
All amounts are automatically converted to subunits.
Helper Utilities
License
MIT License
Support
For issues and questions, please use the GitHub issue tracker.
Credits
Built with โค๏ธ for the Laravel community
All versions of paystack-wrapper with dependencies
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.5
illuminate/http Version ^9.0|^10.0|^11.0
laravel/framework Version ^10.0
monolog/monolog Version ^3.8
ext-json Version *