Developer Documentation
Complete API documentation for integrating PayNexus M-Pesa payments into your applications
PayNexus M-Pesa API Documentation
Complete documentation for integrating PayNexus M-Pesa payments into your applications.
Quick Start Guide
Get your M-Pesa payment integration up and running in minutes! Perfect for developers who want to start quickly.
- 5-minute basic setup
- Language-specific examples
- Testing procedures
- Production checklist
Integration Guide
Comprehensive guide covering API endpoints, authentication, error handling, and best practices.
- Complete API reference
- Authentication methods
- Account reference routing guide
- Error handling patterns
- Security best practices
Webhook Guide
Learn how to set up webhooks for real-time payment notifications and status updates.
- Webhook setup and security
- Payload structure reference
- Language-specific handlers
- Testing and troubleshooting
Code Examples
Ready-to-use code examples in PHP, JavaScript, Python, and cURL for rapid integration.
- PHP (Vanilla, Laravel) with proper routing
- JavaScript (Node.js, Express) with account type checking
- Python (Flask, Django) with complete workflow
- cURL scripts with automated account reference logic
Live API Documentation
Interactive API documentation with real-time endpoint testing and comprehensive reference.
- Interactive testing
- Auto-generated examples
- Real-time validation
- Stable API reference
Stable API Features
Production-ready API with payment initiation, status checks, merchant management, and webhook support.
- Payment initiation and tracking
- Merchant and API key management
- Webhook registration
- Consistent error handling
📡 Stable API
v1.0 Stable API
✅ Production Ready
The stable PayNexus API provides the core payment processing features used by merchant integrations.
Get API Keys
Obtain your Public and Secret keys from the PayNexus dashboard
Choose Language
Select your preferred programming language
Follow Quick Start
Complete the 5-minute integration
Test & Deploy
Test your integration and go live