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
    • Estate 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. Extra Tools
  3. Kopo Kopo C2B Connector v 16.0
  4. Sales Conditions FAQ

Kopo Kopo C2B Connector

by Metro Ict Limited https://odoo.co.ke
Odoo

$ 280.54

v 16.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 • Invoicing (account)
• Discuss (mail)
• Contacts (contacts)
Community Apps Dependencies Show
KE C2B Common (M-Pesa/Kopo Kopo)
Lines of code 511
Technical Name payment_kopokopo_c2b
LicenseOPL-1
Websitehttps://odoo.co.ke
Versions 16.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
• Contacts (contacts)
Community Apps Dependencies Show
KE C2B Common (M-Pesa/Kopo Kopo)
Lines of code 511
Technical Name payment_kopokopo_c2b
LicenseOPL-1
Websitehttps://odoo.co.ke
Versions 16.0
  • Description
  • Documentation
  • License
Price:
$279.00 USD
Supports:
Community
Enterprise
Availability:
On Premise
Odoo.sh
Odoo Online

Payments • Automation

Kopo Kopo C2B Connector

Transform Kopo Kopo BuyGoods payments into automated Odoo account entries. Eliminates manual payment reconciliation with intelligent partner matching and comprehensive transaction tracking.

Hero
  • Screenshots
  • Features
  • FAQs
  • Releases
☁️ Compatibility
Community
Enterprise
Odoo.sh
Not supported on Odoo Online

📸 Screenshots

Visual guide to Kopo Kopo C2B Connector functionality

Kopo Kopo Configuration

Configuration form with API credentials, webhook URLs, and subscription management.

Kopo Kopo configuration

Webhook Subscription

Success notification after subscribing to BuyGoods transaction webhooks.

Webhook subscription success
🤖 Automated Processing
  • 📡 /kopokopo/callback webhook handler
  • 💳 Auto-creates and posts account payments
👥 Smart Partner Matching
  • 🔍 Uses ke_phone_hashes for matching
  • ➕ Creates new customers automatically
⚙️ Webhook Management
  • ▶️ Subscribe/unsubscribe webhooks
  • 🧪 Test webhook functionality
🔒 OAuth Integration
  • 🔑 Secure API authentication
  • 🖥️ Sandbox/production environments

No. Python backend controllers not allowed.

Yes, journal configuration is company-specific.

HMAC-SHA256 signature verification included.

Minor updates free; major upgrades require new purchase.

🚀 Latest Release

2024-12-27
v18.0.1.0.0
➕ Add 🔒 Security
  • Initial release with MSISDN normalization and SHA-256 hashing.
  • Partner fields with duplicate prevention and POS validation.

📅 Changelog

v16.0.1.0.0
2025-08-22
🚀 Initial Release
  • ➕ Add Full automation workflows
  • ⚡ Improve Performance & stability enhancements

📜 Licensing

License Type
OPL-1
Redistribution
Not Allowed
Full Policy
View Policy
Important: This module is distributed under OPL-1. Redistribution in any form is strictly prohibited. Please review our full license policy for complete terms and conditions.

💬 Support & Contact

Email support@odoo.co.ke
Website https://odoo.co.ke/helpdesk
Phone +254739444447
Response Time 1 business day SLA
🎁 90-day complimentary support included with your purchase

Kopo Kopo C2B Connector

Kopo Kopo C2B Connector

Version: 16.0.1.0.0 Author: Metro Ict Limited Website: https://odoo.co.ke License: OPL-1

Overview

The Kopo Kopo C2B Connector is an Odoo module that enables seamless integration with Kopo Kopo's BuyGoods payment system. This module automatically receives, processes, and records customer-to-business (C2B) payments from Kopo Kopo webhooks, creating corresponding payment records in Odoo with automatic partner matching and reconciliation capabilities.

Features

Webhook Integration - Automatic webhook callback handling for Kopo Kopo BuyGoods transactions - Real-time payment processing and recording - Secure webhook verification with signature validation - Support for both sandbox and production environments

Payment Processing - Automatic creation of payment records from webhook data - Intelligent partner matching using phone number hashing - Auto-creation of new partners when not found - Automatic payment posting and journal entry creation - Transaction reference tracking and external ID mapping

Configuration Management - Easy-to-use configuration interface - OAuth token management for API authentication - Webhook subscription and unsubscription management - Test webhook functionality for validation - Support for multiple Till numbers (scope references)

Enhanced Payment Records - Extended payment model with Kopo Kopo-specific fields - Transaction reference and external ID tracking - Phone number and hash storage for reconciliation - Raw payload storage for audit and debugging - Received timestamp tracking

User Interface - Dedicated configuration menu in Accounting settings - Enhanced payment form views with Kopo Kopo fields - Tree and form views for configuration management - One-click webhook subscription/unsubscription

How It Works

1. Configuration Setup The module provides a configuration model (kopokopo.config) where you set up:

  • Environment (Sandbox/Production)
  • API credentials (Application ID and Client Secret)
  • Journal for recording payments
  • Callback URL for webhook notifications
  • Till number (Scope Reference)

2. Webhook Subscription Once configured, the module can automatically subscribe to Kopo Kopo webhooks:

  • Obtains OAuth token using client credentials
  • Subscribes to buygoods_transaction_received events
  • Stores subscription ID and webhook secret for verification

3. Payment Processing Flow When a customer makes a payment to your Till number:

  1. Kopo Kopo sends a webhook to your configured callback URL
  2. The module validates the webhook signature and payload
  3. Extracts transaction details (amount, reference, phone number, etc.)
  4. Searches for existing partner using phone number hash
  5. Creates new partner if not found
  6. Creates and posts payment record in Odoo
  7. Returns success/error response to Kopo Kopo

4. Partner Matching The module uses intelligent partner matching:

  • Normalizes Kenyan phone numbers to standard format
  • Creates secure hashes of phone numbers for privacy
  • Matches payments to existing partners using phone hashes
  • Auto-creates partners with transaction details when no match found

Installation

Prerequisites

  • Odoo 18.0 or later
  • payment_c2b_common_ke module (dependency)
  • account module (standard Odoo module)
  • Active Kopo Kopo BuyGoods account
  • Public-facing server for webhook callbacks

Installation Steps

  1. Download and Install

    Place the module in your Odoo addons directory:

    # Copy module to addons directory
    cp -r payment_kopokopo_c2b /path/to/odoo/addons/
    
  2. Update Module List

    In Odoo, go to Apps → Update Apps List

  3. Install Module

    Search for "Kopo Kopo C2B Connector" and click Install

  4. Install Dependencies

    Ensure the following modules are installed: - payment_c2b_common_ke - account (usually pre-installed)

Configuration

Initial Setup

  1. Navigate to Configuration

    Go to: Accounting → Configuration → Kopo Kopo → Configuration

  2. Create New Configuration

    Click "Create" and fill in the required fields:

    • Name: Descriptive name for your configuration
    • Environment: Choose Sandbox for testing, Production for live
    • Journal: Select the bank journal for recording payments
    • Scope Reference: Your Till number from Kopo Kopo
    • Application ID: Your Kopo Kopo Application ID
    • Client Secret: Your Kopo Kopo Client Secret
    • Callback URL: Your webhook endpoint (e.g., https://yourdomain.com/kopokopo/callback)
  3. Subscribe to Webhooks

    Click "Subscribe Webhook" to register your callback URL with Kopo Kopo

Webhook URL Setup

Your callback URL should be publicly accessible and point to: https://yourdomain.com/kopokopo/callback

Ensure your server: - Has SSL certificate (HTTPS required) - Can receive POST requests - Is not behind authentication for the callback endpoint

Testing

  1. Test Webhook

    Use the "Test Webhook" button to send a test transaction

  2. Verify Configuration

    Check that the webhook subscription was successful and secret was retrieved

  3. Monitor Logs

    Check Odoo logs for any webhook processing errors

Usage

Daily Operations

Viewing Payments - Go to Accounting → Customers → Payments - Kopo Kopo payments will have additional fields populated - Use filters to view only Kopo Kopo transactions

Partner Management - Partners are automatically created from transaction data - Phone numbers are normalized and hashed for matching - Manual partner assignment available if needed

Reconciliation - Payments are automatically posted upon creation - Manual reconciliation with invoices available - Use the "Un-reconciled by Kopokopo" field to track status

Monitoring - Check webhook registration status in configuration - Monitor payment creation in real-time - Review raw payloads for debugging

Troubleshooting

Common Issues

  1. Webhook Not Receiving Data - Verify callback URL is publicly accessible - Check SSL certificate validity - Ensure no firewall blocking requests - Verify Till number in scope reference
  2. Authentication Errors - Verify API credentials are correct - Check environment setting (sandbox vs production) - Ensure OAuth token generation is working
  3. Payment Creation Failures - Check journal configuration - Verify currency settings - Review Odoo logs for detailed error messages
  4. Partner Matching Issues - Verify phone number normalization - Check hash generation for phone numbers - Review partner creation logic

Log Monitoring Enable debug logging for detailed webhook processing information:

_logger = logging.getLogger(__name__)
# Check logs in Odoo for webhook processing details

Support

For technical support and questions:

  • Website: https://odoo.co.ke
  • Author: Metro Ict Limited
  • Module Version: 16.0.1.0.0

Documentation - Kopo Kopo API Documentation: https://app.kopokopo.com/documentation - Odoo Payment Documentation: https://www.odoo.com/documentation/

License

This module is licensed under OPL-1 (Odoo Proprietary License v1.0).

Changelog

Version 16.0.1.0.0 - Initial release - Webhook callback handling - Payment processing and posting - Partner matching and creation - Configuration management interface - Webhook subscription management - Test webhook functionality

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