Back

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.

1

Create a Safaricom B2C Account

Contact Safaricom Business Support to create a Business to Customer (B2C) account for M-Pesa API access.

📞 Safaricom: +254 722 333 000
🌐 Website: business.safaricom.co.ke
2

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
3

Add Credentials to RentFlow

Go to your Landlord Dashboard → Settings → Payment Methods

Consumer Key:

Paste your Safaricom Consumer Key

Consumer Secret:

Paste your Safaricom Consumer Secret

Business Short Code:

Your M-Pesa Business Short Code

Pass Key:

Your M-Pesa Pass Key for generating tokens

4

Configure Callback URLs

In your Safaricom dashboard, set the callback URL for payment confirmations:

https://rentfloor.rentals/api/mpesa/callback.php
5

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.

Need Help?

Contact our support team for assistance with M-Pesa setup.

Get Support →