Free WordPress plugin
M-PESA STK Push for WooCommerce
Offer M-PESA at checkout with your own Safaricom Daraja credentials, Paybill or eligible Till. Shoppers approve the payment on their phone and WooCommerce updates the order after verification.
Version 0.3.0 WordPress ZIP
Store requirements
Check your setup before installing
- WooCommerce in Kenyan shillings (KES). Use whole-shilling order totals between KSh 1 and KSh 250,000.
- WordPress 6.5+ and PHP 8.1+. The Gateway supports classic checkout, Checkout Blocks, HPOS and legacy order storage.
- A Safaricom Daraja app. Use a Paybill or Buy Goods Till that Safaricom has provisioned for STK Push. Open the Daraja developer portal.
- A publicly reachable HTTPS callback. Daraja sends the payment result to this address on your WordPress store.
How checkout works
What the shopper sees and what your store checks.
The payment goes to the receiving Paybill or eligible Till configured in your store’s Daraja settings. The Gateway connects checkout to that account.
An order stays unpaid while the prompt is awaiting approval. The Gateway checks the result with Daraja before completing the payment in WooCommerce.
Yes. The Gateway supports classic WooCommerce checkout and Checkout Blocks. It also works with High-Performance Order Storage (HPOS) and the legacy order store.
Open the order in WooCommerce and choose Check M-Pesa payment status from the order actions. This queries Daraja without sending another prompt. Review the order notes and check merchant records when payment details conflict.
Connect your Daraja sandbox
Follow the installation and testing steps before taking live payments.