Attesta Payments For M-Pesa Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Attesta adds M-Pesa (STK Push / Lipa na M-Pesa) as a WooCommerce payment method, and reconciles every payment automatically so a missed callback never means a lost sale.
How Attesta handles payments:
- Orders are marked paid only against a verified M-Pesa receipt number and a matching amount, not merely because M-Pesa accepted the request.
- Automatic reconciliation: if the payment callback never arrives, Attesta queries M-Pesa directly until it gets a definitive answer.
- Setup validation before you go live: credentials, callback reachability, permalinks, and background processing are all checked up front.
- Your Daraja API credentials never leave your own site and are encrypted at rest.
- Kenya Data Protection Act (2019) aware: phone numbers are hashed/masked, never stored in the clear.
Free vs Pro
Free (this plugin, forever):
- STK Push (Lipa na M-Pesa) with Pay Bill and Till.
- Payments confirmed against a real M-Pesa receipt and matching amount, never on “request accepted”.
- Automatic reconciliation: if the callback never arrives, Attesta queries M-Pesa until it gets a definitive answer.
- Payment recovery when STK fails: the Pay Bill and reference are shown, and the manual payment is matched automatically.
- Setup validation before going live (credentials, callback reachability, permalinks, background processing).
- Transactions ledger with the M-Pesa receipt stored.
- Daraja credentials encrypted in the merchant’s own database.
- One shortcode, one site.
Pro:
- Payment links: get paid over WhatsApp, SMS or an invoice, with no online store.
- C2B account references per customer, tenant or student.
- Standalone cash dashboard, with no WooCommerce required.
- Multiple shortcodes or branches in one installation.
Requirements
- A Safaricom Daraja account and a Paybill or Till number, registered in your own business’s name (M-Pesa integrations must be registered to the business actually receiving the funds. This is a Central Bank of Kenya compliance requirement, not a restriction Attesta invents).
- WooCommerce, for the checkout payment method. Attesta activates and runs without it, but the payment method it adds is a WooCommerce one, so taking payments at a store checkout needs WooCommerce installed.
- Pretty permalinks. M-Pesa cannot reach the confirmation URL with permalinks set to Plain, and the setup check will tell you so.
External services
Attesta connects to one external service: the Safaricom Daraja API (M-Pesa), operated by Safaricom PLC. Without it the plugin cannot take M-Pesa payments. Requests go to https://sandbox.safaricom.co.ke in Sandbox mode and to https://api.safaricom.co.ke in Production mode, using the merchant’s own Daraja credentials. Nothing is sent to Honest Plugins or to any other party.
What is sent, and when:
- Access token request: your Daraja Consumer Key and Consumer Secret. Sent before any of the calls below, and when you run the setup check.
- STK Push (payment request): your shortcode, a password derived from your passkey, the amount, the customer’s phone number, the order reference, a short description and your site’s callback URL. Sent when a customer places an order with M-Pesa as the payment method.
- STK Push query (reconciliation): your shortcode, the password derived from your passkey, and the ID that M-Pesa gave the pending payment. Sent automatically in the background while a payment is still pending and its callback has not arrived.
- C2B URL registration: your shortcode and your site’s confirmation and validation URLs. Sent only when you press the button to register them in Attesta Settings.
Safaricom then sends the payment result back to your site’s callback URL.
Safaricom Daraja terms and conditions: https://developer.safaricom.co.ke/terms
Safaricom data privacy statement: https://www.safaricom.co.ke/dataprivacystatement/
Screenshots
No screenshots provided

