M-Pesa Setup Guide for Landlords
Easy steps to enable M-Pesa rent collection on your RentFlow account
What You'll Need
A Safaricom phone number for M-Pesa, business or personal account, and a business registration certificate.
Create a Safaricom B2C Account
Contact Safaricom Business Support to create a Business to Customer (B2C) account for M-Pesa API access.
🌐 Website: business.safaricom.co.ke
Get Your M-Pesa Credentials
Once approved, Safaricom will provide you with:
- Consumer Key & Consumer Secret - API authentication credentials
- Business Short Code - Your M-Pesa business identifier
- Pass Key - For generating authorization tokens
- Initiator Name & Password - For STK Push requests
Add Credentials to RentFlow
Go to your Landlord Dashboard → Settings → Payment Methods
Paste your Safaricom Consumer Key
Paste your Safaricom Consumer Secret
Your M-Pesa Business Short Code
Your M-Pesa Pass Key for generating tokens
Configure Callback URLs
In your Safaricom dashboard, set the callback URL for payment confirmations:
Test Your Setup
Create a test property in sandbox mode and test a payment. Safaricom provides test phone numbers.
Once confirmed working, switch to production mode to start accepting real M-Pesa payments.
Frequently Asked Questions
How long does Safaricom approval take?
Usually 3-7 business days. Respond quickly to any verification requests.
What's the difference between B2C and B2B?
B2C (Business to Customer) is for STK Push - customers pay you via M-Pesa. B2B is for bulk payments. Use B2C for RentFlow.
Are there transaction fees?
Yes, Safaricom charges transaction fees. Confirm current rates with their business team.
Can I use personal M-Pesa?
No, you need a business M-Pesa account for API access. Personal M-Pesa doesn't support automatic payments.