Add PayNexus M-Pesa payments to WordPress
Use the PayNexus plugin to collect payments from WooCommerce checkout, donation pages, booking forms, service pages, or any WordPress page that can display a shortcode.
M-Pesa checkout, without custom code
Customers enter their phone number, receive an STK Push, and PayNexus sends payment updates back to your site.
How to integrate PayNexus with WordPress
Follow these steps after creating your PayNexus merchant account.
Install from WordPress
In WordPress admin, open Plugins, choose Add New, search for PayNexus Payment Gateway, then install and activate it.
Add API keys
Go to PayNexus Settings in WordPress and paste your merchant Secret Key. Add the Public Key if your setup uses it.
Connect webhooks
Register your site webhook URL in PayNexus so successful, failed, and pending payment updates return to WordPress.
Test and go live
Run a test payment, confirm the WordPress payment record updates, then enable PayNexus for your live checkout.
Use your WordPress REST endpoint for payment updates
After saving your API keys, copy the webhook URL from the plugin settings and add it inside the PayNexus merchant dashboard.
https://yourdomain.com/wp-json/paynexus/v1/webhook
Connect your site and start collecting M-Pesa payments
Create your merchant account, install the plugin, and test your first STK Push payment from WordPress.