Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Accounting
  3. Kenya M-Pesa Daraja v 19.0
  4. Sales Conditions FAQ

Kenya M-Pesa Daraja

by Baris Genc https://gencbaris.com/odoo_plugins/
Odoo

$ 99.58

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
Lines of code 2278
Technical Name pay_ke_mpesa_daraja
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
Lines of code 2278
Technical Name pay_ke_mpesa_daraja
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
  • Description
  • License

Kenya M-Pesa Daraja for Odoo

STK Push checkout, C2B PayBill reconciliation and B2C payouts — Safaricom Daraja, bring-your-own-key

Collect and disburse money over Safaricom M-Pesa directly from Odoo. This connector speaks the published Daraja API end to end: it pushes an STK Push prompt to the customer's phone at checkout, ingests C2B PayBill confirmations and reconciles them against your open invoices, and sends B2C payouts to suppliers, staff or refunds.

Every credential is bring-your-own-key: you enter your own Safaricom consumer key/secret, business short code and Lipa-na-M-Pesa passkey. The module is the integration layer — it is not a payment service provider and bundles no merchant account.

What it does

STK Push checkout

Trigger a Lipa-na-M-Pesa Online prompt on the customer's handset. The connector builds the documented password base64(ShortCode + Passkey + Timestamp), submits the processrequest, and tracks the CheckoutRequestID.

C2B PayBill reconciliation

Register your validation and confirmation URLs, ingest each PayBill payment, and auto-match it to the right open customer invoice by bill reference or payer phone — then reconcile in one click.

B2C payouts

Send Business, Salary or Promotion payments to any Safaricom number. The B2C SecurityCredential is RSA-encrypted from your initiator password and Safaricom's public certificate, or supplied pre-encrypted.

Key features

  • OAuth2 client-credentials authentication against Daraja
  • STK Push (M-Pesa Express) submit and status query
  • Asynchronous STK callback handling with receipt capture
  • C2B registerurl for validation/confirmation endpoints
  • Inbound C2B confirmation ingestion with receipt de-duplication
  • Automatic invoice matching by bill reference and payer phone
  • One-click reconciliation through Odoo's standard payment flow
  • B2C disbursements (Business / Salary / Promotion)
  • Kenyan MSISDN normalisation and whole-shilling KES validation
  • Full, secret-redacted API call audit log per transaction

Daraja surface covered

CapabilityDaraja endpointDirection
Authentication/oauth/v1/generateOutbound
STK Push/mpesa/stkpush/v1/processrequestOutbound
STK status query/mpesa/stkpushquery/v1/queryOutbound
C2B URL registration/mpesa/c2b/v1/registerurlOutbound
C2B confirmationYour confirmation URLInbound
B2C payment/mpesa/b2c/v1/paymentrequestOutbound
B2C resultYour result URLInbound

Bring your own keys

The connector stores nothing on our side. You configure your own Safaricom Daraja app credentials in Odoo (consumer key, consumer secret, business short code, passkey and B2C initiator). All calls go directly from your Odoo instance to Safaricom. We are not a certified aggregator or payment service provider; this is software that talks to your own M-Pesa account.

Built for Kenya

Amounts are validated as whole Kenyan Shillings (KES), and phone numbers are normalised to the canonical 2547xxxxxxxx / 2541xxxxxxxx form M-Pesa expects, whatever shape your customers type.

Screenshots

Api Call Log

Api Call Log

Paybill Payments

Paybill Payments

Acquirers

Acquirers

New Transaction

New Transaction

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with