Developer Documentation

Complete API documentation for integrating PayNexus M-Pesa payments into your applications

Base URL
https://paynexus.mcbankske.space/api
Authentication
X-API-Key: your_key_here

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
Start Now →

Integration Guide

Comprehensive guide covering API endpoints, authentication, error handling, and best practices.

⚠️ Updated: Critical account reference routing information included
  • Complete API reference
  • Authentication methods
  • Account reference routing guide
  • Error handling patterns
  • Security best practices
Read Guide →

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
View Guide →

Code Examples

Ready-to-use code examples in PHP, JavaScript, Python, and cURL for rapid integration.

⚠️ Updated: All examples now include proper account reference handling
  • 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
View Examples →

Live API Documentation

Interactive API documentation with real-time endpoint testing and comprehensive reference.

  • Interactive testing
  • Auto-generated examples
  • Real-time validation
  • Multiple API versions
Open API Docs →

API v2 Features

Enhanced API v2 with advanced analytics, batch operations, and improved performance.

  • Batch payment processing
  • Advanced analytics endpoints
  • Real-time notifications
  • Enhanced error handling
Learn More →

� API Versions

v1.0 API v1

✅ Stable & Production Ready

Our stable API with core payment processing features.

Basic payment initiation
Payment status checking
Webhook support
Merchant management
Rate Limit 60 req/min
Endpoints 12
View v1 Docs
1

Get API Keys

Obtain your Public and Secret keys from the PayNexus dashboard

2

Choose Language

Select your preferred programming language

3

Follow Quick Start

Complete the 5-minute integration

4

Test & Deploy

Test your integration and go live

📞 Need Help?

For technical support and questions: