Call for Assistance: +254 112074649

How to Seamlessly Integrate Zoho Books with M-PESA: A Step-by-Step Guide

February 13, 2025

Why Every Kenyan Business Needs This Integration

Running a business in Kenya means dealing with M-PESA transactions daily. But how do you ensure every payment is automatically recorded, reconciled, and tracked in your accounting system? Imagine an automated system where every M-PESA transaction is recorded instantly into your accounting software without manual entry.

That’s where Zoho Books and M-PESA integration comes in. Instead of manually updating your records, this integration ensures real-time payment tracking, reducing errors and saving time.

In this guide, we’ll break down every step in detail. Whether you run an eCommerce store, a service-based business, or a consultancy, this solution is a game-changer!

Why Integrate Zoho Books with M-PESA?

Most businesses in Kenya already use M-PESA for transactions, but without an automated system, they face challenges like:

  • Manual recording of payments, which is time-consuming.
  • Errors in bookkeeping, leading to financial mismanagement.
  • Delayed reconciliations, making cash flow tracking difficult.

By integrating M-PESA with Zoho Books, you eliminate these issues and unlock powerful business benefits:

1. Instant Payment Recording

Every time a customer pays via M-PESA, the transaction is automatically captured in Zoho Books—no more manual data entry!

  • Eliminates missing or delayed payment records
  • Ensures real-time updates in your accounting system
  • Saves hours of bookkeeping work each month

2. Automated Invoice Payments

With M-PESA linked to Zoho Books, customers can pay invoices instantly. You don’t have to chase payments manually.

  • Customers receive an invoice with an M-PESA payment option
  • Once paid, Zoho Books auto-updates the invoice status
  • Reduces unpaid invoices & improves cash flow management

3. Faster Bank Reconciliation

Matching M-PESA payments to invoices manually is exhausting. With this integration, it happens automatically.

  • Syncs M-PESA transactions directly with Zoho Books & your bank
  • Reduces errors in financial reporting
  • Ensures a clear overview of income & expenses

4. Better Financial Reporting & Insights

You’ll get instant access to detailed reports, giving you a real-time view of your cash flow.

  • View all M-PESA transactions in one place
  • Generate profit & loss statements with real-time data
  • Make better business decisions based on accurate financial reports

5. Enhanced Customer Experience

M-PESA is Kenya’s most popular payment method—by integrating it, you make it easier for customers to pay.

  • Accepts payments instantly via mobile
  • Builds trust & credibility with customers
  • Speeds up transactions, improving customer satisfaction

How to Integrate M-PESA with Zoho Books (Step-by-Step Guide)

Now, let’s walk through the exact process of setting up M-PESA inside Zoho Books. Follow these steps carefully for a smooth integration!

Step 1: Register on Safaricom’s Daraja Portal (Get API Credentials)

To link Zoho Books with M-PESA, you need to create an application on Safaricom's Daraja portal to obtain the necessary API credentials.

1. Access the Daraja Portal:

Navigate to the Daraja 2.0 website.

2. Sign Up or Log In:

  • If you already have an account, click on "LOGIN" and enter your credentials.
  • For new users, click on "SIGN UP" and follow the registration process.

3. Create a New Application:

  • Once logged in, go to the "My Apps" section.
  • Click on "CREATE NEW APP".
  • Provide a name for your application.
  • Check the box next to "Lipa Na M-PESA Sandbox" to select the appropriate API product.
  • Click "CREATE APP" to generate your application.

4. Retrieve Your Credentials:

  • After creating the app, you'll be provided with a Consumer Key and Consumer Secret.
  • To take your app live, navigate to the "GO LIVE" tab.
  • Fill in the required fields; a Pass Key will be generated and sent to your registered email.

Keep these credentials secure, as they are essential for configuring the integration in Zoho Books.

Step 2: Configure M-PESA in Zoho Books

With your Daraja API credentials in hand, proceed to set up the M-PESA integration within Zoho Books:

1. Log in to Zoho Books:

Access your account at Zoho Books.

2. Navigate to Payment Gateways:

  • Click on the gear icon (Settings) in the top-right corner.
  • Select "Online Payments" from the dropdown menu.
  • Click on "Payment Gateways".

3. Set Up M-PESA:

  • In the list of available payment gateways, find "Safaricom M-PESA" and click on "Set Up Now".

Enter the following details:

  1. Business Short Code: This is provided by Safaricom upon registration.
  2. Consumer Key and Consumer Secret: Obtained from the Daraja portal.
  3. Pass Key: Received via email during the app creation process.
  • Link your business bank account to facilitate seamless transactions.
  • Click "Save" to activate the integration.

This setup enables Zoho Books to communicate directly with M-PESA, allowing for automated payment processing and recording.

Step 3: Enable M-PESA Payments on Invoices

To offer M-PESA as a payment option to your customers:

1. Create or Edit an Invoice:

  • In Zoho Books, navigate to the "Sales" module and select "Invoices".
  • Click on "New Invoice" to create a new one or select an existing invoice to edit.

2. Configure Payment Options:

  • Within the invoice, locate the "Payment Options" section.
  • Check the box for "M-PESA" to enable it as a payment method.

3. Save and Send the Invoice:

  • After configuring the payment options, click "Save".
  • Send the invoice to your customer via email or SMS directly from Zoho Books.

Customers will now see M-PESA as a payment option on their invoices, allowing for quick and convenient payments.

How Customers Can Pay via M-PESA

When a customer receives an invoice with M-PESA as a payment option:

1. Access the Invoice: The customer opens the invoice link sent to their email or SMS.

2. Select M-PESA as Payment Method: Within the invoice, they choose M-PESA as their preferred payment option.

3. Enter Payment Details:

  • The customer provides their M-PESA registered phone number.
  • They confirm the payment on their mobile device using their M-PESA PIN.

Once the payment is completed, it is instantly recorded in Zoho Books, updating the invoice status automatically.

🚀 No more manual updates! Your books stay accurate in real-time.

🔹 Troubleshooting Common Issues

🔴 Issue: Payments Not Reflecting in Zoho Books
✅ Solution: Double-check your Short Code, API Keys, and Pass Key for accuracy.

🔴 Issue: Customers Can’t Make Payments
✅ Solution: Ensure your M-PESA Paybill number is active and correctly configured.

🔴 Issue: API Authentication Errors
✅ Solution: Generate new API credentials in the Daraja Portal and update them in Zoho Books.

Why This Integration is a Game-Changer for Kenyan Businesses

Perfect for SMEs, freelancers, & eCommerce businesses – Say goodbye to manual data entry!
⚡ Fast & secure transactions – Reduce payment delays & streamline finances.
Detailed financial insights – Get real-time reports on M-PESA transactions.

Need Expert Help Setting Up Zoho Books & M-PESA?

Spondoo Kenya can assist you with professional setup & support.

📢 Don’t wait! Set up your Zoho Books & M-PESA integration today and experience effortless financial management.

💬 Have questions? Drop a comment below, and let’s discuss! Book a consultation today!

more tips

SPONDOO KENYA: The First Online Accountants in East Africa

Managing business finances can be simple with the right online accounting partner. Spondoo Kenya, East Africa’s first online accounting firm, offers cloud-based bookkeeping, tax filing, and payroll services to keep businesses financially organized. With secure, affordable, and efficient solutions, Spondoo Kenya helps businesses stay compliant and focused on growth.
READ MORE

I Live in Kenya but My UK Employer is Deducting UK Tax from My Payslip

Living in Kenya but being employed by a UK-based employer can lead to confusion regarding taxation, especially if you notice deductions for UK tax on your payslip. This article aims to clarify the situation, explain your rights under international tax laws, and offer guidance on how to handle this issue.
READ MORE

Tax Exemption for People with Disabilities – NCPWD Guide

Do you have a disability and want to reduce your tax burden? The NCPWD tax exemption offers a transformative opportunity! This comprehensive guide walks you through the process to claim up to Ksh 1.8M in annual tax relief. Take control of your financial future today!
READ MORE

How to Secure a Class D Work Permit for Foreign Nationals in Kenya

Are you a foreign national eager to work in Kenya? A Class D Work Permit is your key to legal employment! This guide simplifies the process, explaining eligibility, required documents, and steps to apply. Unlock your career opportunities in Kenya with confidence today!
READ MORE

How to Register for a KRA PIN as a Non-Kenyan Resident

Are you a non-Kenyan resident planning to live, work, or invest in Kenya? Obtaining a KRA PIN is your first step toward legal compliance and accessing essential services. This guide simplifies the registration process, providing all you need to know to get started quickly and efficiently!
READ MORE

How to Register for PAYE in Kenya: A Step-by-Step Guide

Successfully navigating the Pay As You Earn (PAYE) registration process in Kenya requires understanding the legal framework, gathering essential documents, and utilizing the KRA's iTax portal effectively. With this guide, you'll gain practical tips to ensure a smooth registration process, avoid common pitfalls, and maintain compliance with Kenya's tax regulations. Whether you're a sole proprietor, a partnership, or a corporation, these insights will help streamline your PAYE registration journey.
READ MORE
LEARN MORE
Information provided on the site is merely guidance that may change in line with Kenya law and regulations. Users must not consider this to be financial advice or their sole resource when making any financial decision. Spondoo & Spondoo.ke is a trading name of Accounting SQL Limited, authorised & license accounting firm in the United Kingdom. This trading name is licensed to Spondoo Advisers Limited, an authorised & licensed accounting firm in the Republic of Kenya.
© Copyright 2023 - Spondoo.Ke - All Rights Reserved
How, can we help?
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram