| 开发者 | kaykorw |
|---|---|
| 更新时间 | 2026年12月1日 19:02 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[mulla_pay] shortcode: fixed amounts (fees, tickets) or visitor-chosen amounts (donations).sk_test_ keys: no real money moves.wp-config.php instead of the database.sk_test_… for Sandbox) from the Mulla dashboard (Developers → API keys).[mulla_pay amount="5000" reason="Membership"].sk_live_… key.
Keeping keys out of the database
Add to wp-config.php (the matching fields in wp-admin become read-only):
define( 'MULLA_MODE', 'production' );
define( 'MULLA_LIVE_SECRET_KEY', 'sk_live_...' );
define( 'MULLA_LIVE_WEBHOOK_SECRET', '...' );
The Sandbox equivalents are MULLA_TEST_SECRET_KEY and MULLA_TEST_WEBHOOK_SECRET.MTN Mobile Money and Airtel Money in Rwanda. You can turn either one off in the WooCommerce payment settings.
Check that the store currency is RWF, that a secret key for the current mode is saved, and that the method is enabled.
Mulla cannot reach a local site, but payments are still confirmed: the plugin checks the payment status on its own for about 20 minutes. To test webhooks locally, expose the site with a tunnel.
Not yet. Refund the customer from the Mulla dashboard.
[mulla_pay amount="5000" reason="Membership" button="Pay now"] charges a fixed amount. Leave out amount to let the visitor choose it; min sets the lowest accepted amount (default 100 RWF). Add flow="onsite" to collect the phone number on your page instead of sending the visitor to the Mulla checkout page.
Only what a payment needs: the phone number, the amount, a short description such as "Order 123 at Your Shop", the order number and your site address. See the Mulla privacy policy for how Mulla processes payment data.
[mulla_pay] shortcode, two payment flows (Mulla checkout page or phone number on your site), signed webhooks with polling fallback, one-click webhook setup.