Description
PayNexus Payment Gateway lets you accept M-Pesa mobile money payments on your WordPress website. Money flows directly from the customer to your own M-Pesa payment account — PayNexus never holds or delays your funds.
Features:
- M-Pesa STK Push — Customers receive a payment prompt on their phone
- WooCommerce integration — Full checkout gateway for WooCommerce stores
- Shortcode support — Embed payment forms on any page with
[paynexus_payment_form] - Real-time polling — Automatic status updates without page refresh
- Webhook support — Receive instant payment notifications via REST API
- Admin dashboard — View and filter all payments from WordPress admin
- Secure — HMAC-SHA256 webhook signature verification with replay protection
- Local records — Every payment is stored locally for your records
How It Works:
- Customer enters their phone number and amount
- PayNexus sends an M-Pesa STK Push to the customer’s phone
- Customer enters their M-Pesa PIN to confirm payment
- Payment status is updated automatically via webhook
- WooCommerce orders are marked as paid automatically
Installation
- Download the plugin ZIP file
- Go to Plugins Add New Upload Plugin in WordPress admin
- Upload the ZIP file and click Install Now
- Activate the plugin
- Go to PayNexus Settings to enter your API keys
- For WooCommerce: enable the gateway at WooCommerce Settings Payments M-Pesa (PayNexus)
Getting API Keys:
- Sign up at paynexus.co.ke
- Go to Merchant Dashboard API Keys
- Copy your Secret Key (sk_…) and optionally the Public Key (pk_…)
FAQ
-
Does PayNexus hold my funds?
-
No. PayNexus is a payment orchestrator. Money flows directly from the customer to your own M-Pesa payment account.
-
Do I need WooCommerce?
-
No. You can use the
[paynexus_payment_form]shortcode on any page without WooCommerce. WooCommerce integration is optional. -
What phone number format should customers use?
-
Kenyan phone numbers in the format 254746990866 (with country code, no +).
-
How do I receive webhook notifications?
-
Set your webhook URL to
https://yoursite.com/wp-json/paynexus/v1/webhookin the PayNexus dashboard.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“PayNexus Payment Gateway” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “PayNexus Payment Gateway” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.2
- Updated plugin to meet WordPress plugin standards
1.0.1
- Fixed security vulnerabilities
1.0.0
- Initial release
- M-Pesa STK Push payment initiation
- WooCommerce payment gateway
- Payment form shortcode
- Payment status shortcode
- Admin settings page
- Admin payments list
- Webhook handler with HMAC verification
- Real-time JavaScript status polling
