Overview
The RohoPay WooCommerce plugin adds mobile money and card payment methods to any WooCommerce store. Customers can pay via MTN MoMo, Airtel Money, M-Pesa, or Visa/Mastercard — no developer required after initial setup.Prerequisites
- WordPress 6.0+
- WooCommerce 8.0+
- An active RohoPay account with a live API key
- HTTPS enabled on your WordPress site
Installation
Download the Plugin
Download the RohoPay WooCommerce plugin ZIP from your RohoPay dashboard under WordPress → Plugin Download.
Upload to WordPress
In your WordPress admin:
- Go to Plugins → Add New → Upload Plugin
- Upload the
rohopay-woocommerce.zipfile - Click Install Now, then Activate
Connect Your RohoPay Account
In your RohoPay dashboard:
- Go to WordPress → Connections → New Connection
- Enter your WordPress site URL
- Copy the generated Site Token
- Go to WooCommerce → Settings → Payments → RohoPay
- Paste the Site Token
- Click Save & Verify
Dashboard Connection API
Manage connections programmatically:Create a Connection
List Connections
Regenerate Site Token
If your token is compromised:Provider Routing Rules
The plugin supports weighted routing between providers:Viewing Plugin Transactions
Transactions originating from the WooCommerce plugin are tagged withsource_module: "plugin" and can be viewed:
- Dashboard → Transactions (filter by source)
- WordPress dashboard → WooCommerce → Orders (linked to RohoPay references)
- API:
GET /api/v2/plugins/transactions
Plugin Settings
Update plugin settings per connection:Troubleshooting
Plugin shows 'Not connected' after entering site token
Plugin shows 'Not connected' after entering site token
- Verify the site URL in your dashboard matches exactly (including
https://and trailing slash behavior) - Ensure your WordPress site is publicly accessible over HTTPS
- Check that the site token was copied correctly without extra spaces
- Try regenerating the token and reconnecting
Payments not appearing in WooCommerce orders
Payments not appearing in WooCommerce orders
- Check your RohoPay webhook configuration — the plugin registers its own callback URL during setup
- Ensure your WordPress site can receive POST requests from your RohoPay API URL
- Check the WordPress error log (
wp-content/debug.log) for RohoPay-related errors
USSD prompt not sent to customer
USSD prompt not sent to customer
- Verify the phone number format — ensure customers enter numbers in local format (e.g.,
0700 123 456for Uganda) - Check that you’re using a live API key for production
- Test with the test phone number
256700000000in test mode
WooCommerce Checkout Flow
When a customer selects RohoPay Mobile Money:- Customer enters their phone number on the WooCommerce checkout page
- Plugin calls RohoPay to initiate collection
- Customer receives USSD prompt on their phone
- After approval, WooCommerce order status changes to Processing
- Merchant fulfills the order and marks it Complete
- Customer enters card details on the WooCommerce checkout page
- Plugin calls RohoPay checkout API
- Customer is redirected to 3DS authentication page
- After authentication, customer returns to WooCommerce success page
- Webhook confirms payment; order status changes to Processing