Linux 软件免费装
Banner图

Marupurupu Checkout for M-Pesa

开发者 marto46
更新时间 2026年9月30日 04:27
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce payment gateway kenya mpesa safaricom

下载

1.6.3

详情介绍:

Marupurupu Checkout for M-Pesa allows you to accept payments via M-Pesa (Safaricom) using the STK Push (Lipa Na M-Pesa Online) feature. This plugin integrates seamlessly with WooCommerce and supports both classic shortcode-based checkout and modern block-based checkout. Independent plugin — no affiliation. This plugin is developed independently. It is not affiliated with, endorsed by, or sponsored by Safaricom, M-Pesa, WooCommerce or Automattic. M-Pesa, Safaricom and WooCommerce are trademarks of their respective owners, used here only to describe what the plugin works with. Features Requirements Setup
  1. Upload the plugin to /wp-content/plugins/marupurupu-checkout-for-mpesa/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to WooCommerce > Settings > Payments
  4. Enable "M-Pesa Till Payment"
  5. Click "Manage" to configure your M-Pesa credentials
  6. Add your Business Short Code (Till Number), Consumer Key, Consumer Secret, and Passkey
  7. Configure callback URL (auto-generated)
  8. Save changes and test in Test Mode first
Configuration Required Settings: External services This plugin connects to the third-party services below. Nothing is sent to Safaricom until you configure the plugin and a payment is attempted, and nothing is sent to the usage-statistics collector unless you opt in. Safaricom Daraja API (api.safaricom.co.ke, or sandbox.safaricom.co.ke when Test Mode is on) — the service that actually takes the M-Pesa payment. WordPress.org secret-key generator (api.wordpress.org/secret-key/1.1/salt/) — only a link in an admin notice shown when your site's security keys are missing. The plugin sends nothing to it; your browser opens it only if you click the link.

安装:

Automatic Installation
  1. Log in to your WordPress dashboard
  2. Navigate to Plugins > Add New
  3. Search for "Marupurupu Checkout for M-Pesa"
  4. Click "Install Now"
  5. Activate the plugin
Manual Installation
  1. Download the plugin ZIP file
  2. Log in to your WordPress dashboard
  3. Navigate to Plugins > Add New > Upload Plugin
  4. Choose the downloaded ZIP file
  5. Click "Install Now"
  6. Activate the plugin
After Installation
  1. Go to WooCommerce > Settings > Payments
  2. Enable "M-Pesa Till Payment"
  3. Configure your M-Pesa credentials
  4. Test in Test Mode before going live

屏幕截图:

  • Checkout page showing M-Pesa payment option (Block checkout)
  • STK Push prompt on customer's phone
  • Transaction reports dashboard
  • Order received page with payment status
  • Payment settings and encryption management

升级注意事项:

1.3.0 IMPORTANT: This security release clears your stored M-Pesa credentials (Consumer Key/Secret, Passkey). You MUST re-enter and save them on the M-Pesa settings page after updating, or checkout will not work. See the full changelog for details. 1.2.0 Telemetry is now a real, working opt-in feature (was previously scaffolded but inert). Off by default — no behavior change unless you explicitly enable it under Payments > M-Pesa Till > Anonymous Usage Data. 1.1.1 Security hardening release: re-enables SSL certificate verification on M-Pesa API calls and adds callback authentication. Update is strongly recommended for all sites. 1.1.0 This version adds support for WooCommerce block-based checkout. No breaking changes. Simply update and M-Pesa will work on both classic and block checkouts. 1.0.0 Initial release. Please test in sandbox mode before using in production.

常见问题:

Does this work with WooCommerce block checkout?

Yes! Version 1.1.0 adds full support for WooCommerce block-based checkout while maintaining backward compatibility with classic checkout.

Do I need an SSL certificate?

Yes, M-Pesa STK Push requires your site to have a valid SSL certificate (HTTPS).

How do I get M-Pesa API credentials?

  1. Register on Safaricom Daraja Portal: https://developer.safaricom.co.ke/
  2. Create a new app
  3. Get your Consumer Key and Consumer Secret
  4. Request for production credentials after testing

What is a Till Number?

A Till Number is your M-Pesa Buy Goods business number. This plugin currently supports Till (Buy Goods) payments only; Paybill numbers are not supported.

Can I test before going live?

Yes! Enable "Test Mode" in settings and use the test credentials from Daraja Portal.

Where can I see transaction reports?

Go to WooCommerce > M-Pesa Transactions to view all payment transactions.

What if payment fails?

The plugin includes comprehensive error logging. Enable debug mode and check wp-content/debug.log for details.

Does it support multiple currencies?

Currently supports KES (Kenyan Shillings) only, as required by M-Pesa.

How do callbacks work?

The plugin automatically generates a callback URL, including a secret token unique to your site. M-Pesa sends payment confirmations to this URL; the plugin verifies the token before updating order status automatically.

更新日志:

1.6.3 - 2026-09-24 1.6.2 - 2026-09-22 1.6.1 - 2026-09-19 1.6.0 - 2026-09-19 1.5.6 - 2026-09-19 1.5.5 - 2026-09-18 1.5.4 - 2026-09-18 1.5.3 - 2026-09-09 1.5.2 - 2026-09-09 1.5.1 - 2026-09-09 1.5.0 - 2026-08-31 1.4.2 - 2026-08-28 1.4.1 - 2026-08-28 1.4.0 - 2026-08-28 1.3.0 - 2026-08-25 1.2.0 - 2026-08-14 1.1.1 - 2026-08-02 1.1.0 - 2026-01-13 1.0.0 - 2025-12-24