Download the PHP package paynexus/laravel-paynexus without Composer
On this page you can find all versions of the php package paynexus/laravel-paynexus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paynexus/laravel-paynexus
More information about paynexus/laravel-paynexus
Files in paynexus/laravel-paynexus
Package laravel-paynexus
Short Description Laravel SDK for the PayNexus payment orchestration platform. Accept M-Pesa STK Push payments, track payment status in real time, and keep local payment records synchronized with PayNexus.
License MIT
Homepage https://www.paynexus.co.ke
Informations about the package laravel-paynexus
⚡ Quick Start
⚠️ Important: The official PayNexus documentation at
paynexus.co.ke/docs/laravelcontains outdated information. Always refer to this README for accurate installation instructions. The correct package name ispaynexus/laravel-paynexus(notpaynexus/laravel), and the base URL should behttps://paynexus.co.kewithout/apisuffix.
See GETTING_STARTED.md for the complete 5-minute tutorial.
✨ Features
- 🚀 Easy Integration - Simple facade-based API
- 💳 M-Pesa STK Push - Seamless mobile payments
- 🔄 Real-time Tracking - Poll or use webhooks
- 📊 Local Records - Automatic database sync
- 🔔 Laravel Events - Payment state change events
- 🔒 Secure - HMAC webhook verification
- 🎯 Polymorphic Relations - Link payments to any model
- 📄 Invoices - Create and manage invoices
- 🧾 Receipts - Generate and send receipts
- 🛒 Checkout Sessions - Hosted payment pages
📚 Documentation
| Document | Description |
|---|---|
| GETTING_STARTED.md | 5-minute quick start guide |
| EXAMPLES.md | Real-world integration examples |
| API Reference | Complete API documentation |
🎯 Common Use Cases
Ecommerce Store
Subscriptions
Invoices
🔔 Webhook Events
Listen for these events in your EventServiceProvider:
Webhook URL: https://yourapp.com/paynexus/webhook
📦 Local Payment Records
Every payment creates a paynexus_payments record:
🔑 API Reference
Payments
Invoices
Receipts
Checkout Sessions
Merchant
Webhooks
Phone Validation
⚙️ Configuration
| Option | Env Variable | Default | Description |
|---|---|---|---|
secret_key |
PAYNEXUS_SECRET_KEY |
— | Your secret API key (required) |
public_key |
PAYNEXUS_PUBLIC_KEY |
— | Your public API key (optional) |
base_url |
PAYNEXUS_BASE_URL |
https://paynexus.co.ke |
PayNexus API URL |
currency |
PAYNEXUS_CURRENCY |
KES |
Default currency |
webhook.secret |
PAYNEXUS_WEBHOOK_SECRET |
— | Webhook signature secret |
webhook.path |
PAYNEXUS_WEBHOOK_PATH |
/paynexus/webhook |
Webhook route path |
See config/paynexus.php for all options.
🧪 Testing
🚨 Error Handling
📋 Requirements
- PHP 8.2+
- Laravel 11.x or 12.x
- Composer 2.x
💬 Support
- 📧 Email: [email protected]
- 📚 Docs: GETTING_STARTED.md
- 💡 Examples: EXAMPLES.md
- 🐛 Issues: GitHub Issues
- 🌐 Platform: paynexus.co.ke
📄 License
MIT — see LICENSE.
All versions of laravel-paynexus with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0