
Closed
Posted
I need a full-stack M-Pesa payment solution wired into my existing website so customers in Kenya can pay seamlessly. The front end must trigger an STK Push, the back end has to talk to the Safaricom Daraja API, capture callbacks, validate each transaction, and update our database in real time. You will begin in the Safaricom sandbox, prove everything works end-to-end, then switch to live credentials. I’m flexible on the tech stack—Node, PHP, Python or any modern framework is fine—provided the final code is clean, well-commented and easy for my team to maintain. Deliverables • Fully functional M-Pesa integration on the live site • Callback/validation endpoints with proper error handling • Environment and config files for both sandbox and production • Brief deployment guide plus a short hand-over session Show me at least one website where you have already implemented M-Pesa so I can gauge fit and reliability.
Project ID: 40608197
192 proposals
Remote project
Active 2 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
192 freelancers are bidding on average $19 USD/hour for this job

With over a decade of experience in full-stack architecture and high-scale systems, I understand your need for a seamless M-Pesa payment integration on your website to cater to customers in Kenya. My background in handling high-complexity systems, such as serving over 1 million users with Telegram Mini Apps, directly applies to the challenges of setting up STK Push triggers and Safaricom Daraja API communication for real-time transaction validation. A strategic insight for your project would be to prioritize error handling in the callback/validation endpoints to ensure a smooth payment process. I have successfully integrated M-Pesa solutions into websites before, showcasing my ability to handle the intricacies of such payment gateways efficiently. I encourage you to take the next step and reach out to discuss the roadmap for implementing the M-Pesa payment solution on your website. I look forward to collaborating with you to deliver a clean, well-commented codebase that meets your requirements seamlessly.
$20 USD in 15 days
9.0
9.0

Hi, I can develop and integrate a secure, end-to-end M-Pesa payment solution into your existing website, enabling customers in Kenya to complete payments smoothly through STK Push. I have already developed similar payment-integrated platforms and understand the complete workflow, including Safaricom Daraja API integration, STK Push requests, callback handling, transaction validation, real-time database updates, and secure production deployment. My development approach: • Review your existing website, backend, and payment flow • Configure Safaricom Daraja Sandbox credentials • Develop the STK Push integration and payment interface • Build secure callback and validation endpoints • Validate transactions and update the database in real time • Add proper error handling, logging, and retry mechanisms • Test the complete payment flow end-to-end • Switch to live credentials and deploy securely • Provide clean, well-commented code, environment files, documentation, and a handover session I can also share a relevant M-Pesa implementation or similar payment project privately, subject to client confidentiality. A few questions: What technology stack is your existing website currently built with? Do you already have Safaricom Daraja production credentials, or should I assist with the live onboarding and configuration? I would be happy to discuss your current setup and deliver a reliable, maintainable M-Pesa integration. Best regards Rahul
$15 USD in 40 days
8.7
8.7

Hi there, Seamless M-Pesa integration is crucial for your Kenyan customers. I specialize in full-stack solutions that ensure smooth payment processing. **Execution Plan:** 1) Set up the Safaricom sandbox for testing STK Push and API interactions. 2) Implement callback validation and error handling. 3) Deploy to live credentials with a comprehensive hand-over session. I have successfully integrated M-Pesa in previous projects, which I can share upon request. What specific tech stack do you prefer for the backend implementation? Let’s discuss how we can make this integration flawless!
$20 USD in 40 days
8.4
8.4

Hello, I’m a full-stack Laravel developer with 7+ years of experience building secure payment workflows, REST APIs, callback systems, and real-time transaction processing. I can integrate Safaricom Daraja M-Pesa into your existing website, including: • STK Push initiation from the frontend • Secure OAuth token handling • Callback and validation endpoints • Transaction verification and database updates • Duplicate callback protection and detailed error logging • Separate sandbox and production configurations • Live deployment documentation and handover support I would first complete and test the full payment flow in the Safaricom sandbox, covering successful, failed, cancelled, timed-out, and duplicate transactions. Once verified, I would safely switch the integration to live credentials without exposing sensitive keys in the codebase. My preferred stack is Laravel, MySQL, REST APIs, queues, and webhooks, following clean architecture and Laravel security best practices. I have integrated many payment methods in my past experience. With Safaricom Daraja API documentation, I will integrate it properly with sandbox and live mode. I do not want to provide an unrelated project as an M-Pesa reference. However, I can explain the exact integration architecture, security approach, and transaction lifecycle before development begins. I’m available to start immediately and can deliver a reliable, maintainable, production-ready M-Pesa payment solution. Thanks, Ali
$20 USD in 40 days
8.3
8.3

Hi, I can see the hidden risk here: M-Pesa is not just a payment button, it has to confirm, validate, and update your system without breaking trust. I’ve built and integrated payment flows before, including API-driven checkout logic, webhook/callback handling, and database updates, so I can wire the Daraja STK Push flow cleanly into your existing site. I’ll start in the Safaricom sandbox, verify the full request-to-callback cycle, then move everything to live credentials with proper environment separation, error handling, and maintainable config files. I’ve shared an initial estimate based on your description, and once we go over a few technical or functional details, I’ll confirm the exact cost and delivery schedule. Could you share your current website stack and whether the database should mark payments as paid immediately after callback verification or after an additional business rule check? I can also provide a short deployment guide and handover so your team can support it confidently. Best regards, Asad
$15 USD in 24 days
8.3
8.3

SURELY, I CAN START IMMEDIATELY I can integrate a secure, end-to-end M-Pesa payment solution using the Safaricom Daraja API with STK Push, callback handling, transaction validation, and real-time database updates, thoroughly tested in the sandbox before deploying seamlessly to your live environment. Thanks!! Parminder
$15 USD in 40 days
8.2
8.2

Hi, I can integrate **M-Pesa (Safaricom Daraja API)** into your existing website with a complete end-to-end payment flow, including **STK Push**, secure callback and validation endpoints, real-time database updates, and robust error handling. I'll first implement and test everything in the **Safaricom sandbox**, then switch to the live environment once verified. You'll receive clean, well-documented code, environment configurations for both sandbox and production, a deployment guide, and a handover session to help your team manage the integration confidently. **Best regards,** **Muhammad Rizwan LA**
$20 USD in 40 days
8.2
8.2

Hi! This is something we can handle without issues. Before I can give you a proper estimate, one thing that really changes the scope: is this a standalone payment flow (select product → pay → confirm) or does it need to tie into order management, inventory, or anything else on the backend side? We'd work against the Daraja API — sandbox first, full end-to-end validation, then flip to live credentials. Clean separation between environments, callback handling with proper idempotency so duplicate notifications don't cause double-updates, and config structured so your team can maintain it without digging through the code. On the "show me a live M-Pesa site" request — we don't share client URLs publicly without permission, but happy to walk you through the integration approach in detail so you can judge fit from that. Would like to clear up that scope question before putting a number on it. Gustavo & the DoTheCode team
$25 USD in 11 days
7.9
7.9

Coming with over 8 years of vast experience in website development and graphic design, I, Luqman Ahmed, offer you the right blend of a creative mind and technical expertise to handle your project impeccably. Having successfully built websites with real-time payment gateways like WordPress, Shopify, and WIX, including custom solutions tailored for businesses, I feel confident that I can implement the M-Pesa payment solution smoothly into your existing website. Encompassing full-stack development skills including JavaScript, MySQL, Node.js, Payment Gateway Integration apart from PHP and Python which are particularly relevant to this project; I am adept at delivering fast, secure & SEO-friendly solutions just as you've outlined in your project description. My previous clients have appreciated my intense focus on clean and well-commented codes which will certainly ensure easy maintenance by your team. In this connected business era, building a strong online presence is crucial.
$15 USD in 5 days
7.7
7.7

Hi, I went through your project and it sounds like you're looking for a reliable solution that works correctly from the start and is easy to maintain as it grows. Before writing code, I like to understand the expected workflow, business rules, and any edge cases so the implementation matches your requirements instead of requiring multiple revisions later. I build clean, well-structured applications with a strong focus on performance, security, and long-term maintainability. Whether this involves PHP, Laravel, API integrations, database design, or improving an existing application, I deliver work in clear milestones with regular progress updates. Let's go through your requirements and suggest the best approach before finalizing the scope and timeline. ⭐ 5.0/5 from a recent client: "Project was delivered before Time with Best professional Knowledge One could ever held. Thanks for the support" Final timeline and cost will be confirmed in chat after a complete understanding and documentation of the project expectations in detail.
$15 USD in 1 day
7.6
7.6

Hey, I’ve carefully reviewed your project, and I understand you need a reliable M-Pesa payment integration that connects your existing website with Safaricom Daraja API while ensuring secure transaction handling and real-time updates. I can help implement a smooth payment flow with proper validation, error handling, and production readiness. I will integrate the STK Push flow, build callback and validation endpoints, configure sandbox and live environments, connect transaction updates with your database, and provide clear documentation with handover support. I have experience building API-based payment integrations and would be happy to share relevant examples and discuss the implementation approach during our conversation. One quick question: what technology stack is your current website built on, and do you already have access to Safaricom Daraja sandbox credentials? Portfolio: https://www.freelancer.com/u/Hammadhassan21 Best Regards, Hammad Hassan
$20 USD in 40 days
7.6
7.6

Hi there, I understand you need to manage the full M-Pesa STK Push lifecycle. A customer action on your frontend should trigger the payment prompt, while your backend needs to listen for the Safaricom Daraja callback, validate the payment details against the initiated order, and update your database in real-time upon success. Technical approach: We can use Node.js or Laravel to create a dedicated API service. This will have an endpoint to initiate the STK Push and a secure webhook to receive and process the callback from Safaricom. Credentials will be managed via environment files for a simple switch from sandbox to production. Core modules: - Payment Initiation Engine (triggers STK push) - Asynchronous Callback Handler (receives & validates Safaricom data) - Transaction Database Updater (confirms order status) - Robust Error Logging (for failed or timed-out transactions) Relevant systems: While we don't have a public M-Pesa project, our work on complex platforms like Bison360 involved integrating multiple payment APIs (Stripe, Square). The core architectural pattern of handling API requests, processing webhooks, and updating a database is directly transferable. We'll build and perfect the entire flow in the sandbox environment first before deploying to live, ensuring a smooth transition. Regards, Rohit
$15 USD in 7 days
8.0
8.0

Hello, My recent Full Stack Development work includes M-Pesa STK Push flows, Daraja callbacks, and transaction validation for Kenyan checkout pages. I can share a relevant live example privately, since payment details should not be posted publicly. I will start in the Safaricom sandbox, connect the front end trigger to clean API Development endpoints, then switch to live credentials after end-to-end testing. The callback logic will validate payments, update MySQL in real time, handle errors, and include config files plus a short deployment guide. Best regards, Teo
$20 USD in 20 days
6.8
6.8

Hello, I am very interested in your project for integrating M-Pesa payments into your website. I have a strong background in MySQL, PHP, JavaScript, Python, Full Stack Development, Node.js, and API Development, making me well-equipped to handle the requirements you have outlined. I understand that the project involves setting up STK Push on the front end, integrating with the Safaricom Daraja API, handling callbacks, validating transactions, and updating the database in real-time. I will start by working in the Safaricom sandbox environment to ensure everything functions correctly before transitioning to live credentials. - MY WORK STATS: ✨ https://www.freelancer.com/u/XanvraTECH I believe my experience in similar projects makes me a suitable candidate for this task. I look forward to discussing the project further with you to ensure a successful integration. Best regards, Warda Haider
$15 USD in 40 days
6.8
6.8

Hello, I’ve carefully reviewed your M-Pesa integration scope, and I’m confident I can wire the full payment flow into your website cleanly and reliably. I can handle the STK Push on the frontend, connect the backend to Safaricom Daraja API, process callback/validation endpoints, and ensure your MySQL updates happen in real time with proper error handling. My experience in Full Stack Development includes PHP, JavaScript, and database-driven payment workflows for production websites, with maintainable code, clear documentation, and smooth handover. I’ll first set everything up in sandbox, validate the complete transaction cycle, then move it safely to live credentials and provide deployment guidance for your team. I can start immediately and share the implementation plan and timeline after a quick discussion. Would you like the callback architecture designed to support retries and audit logs for every M-Pesa transaction? Best regards, KANIKA
$22 USD in 30 days
7.0
7.0

Hello Getting M-Pesa’s Daraja API to handle STK push callbacks reliably while keeping your frontend updated in real-time is where most integrations fail. I will wire a secure backend callback handler to your frontend for instant, automated payment confirmation. Having integrated Lipa na M-Pesa (both C2B and Express) for three production apps, I ensure zero missed transactions. What stack are you currently using for your frontend and backend? Giáp Văn Hưng
$20 USD in 7 days
7.0
7.0

Hi. To wire M-Pesa smoothly into your site, I’ll implement the STK Push flow end to end, connect Safaricom Daraja on the backend, and make sure callbacks update your database reliably in real time. I’ll start in the sandbox, verify every transaction path, then move the same codebase to live credentials with clean environment separation for production safety. For the backend, I’d use Node.js or PHP with structured validation, idempotent callback handling, and clear error logs so your team can maintain it easily. The front end will trigger payments cleanly, while the server handles transaction verification and status updates without blocking checkout. As a Senior Full-Stack Developer, I have mastered Node.js, PHP, Python, API integration, webhook handling, and database-driven payment workflows and have strong experience in fintech and e-commerce projects. I can also provide a deployment handover and a short walkthrough so your team can operate it confidently. I am sure I can deliver high-quality results within a short timeline, depending on your current site structure. Let’s get in touch and discuss more. Thanks.
$19 USD in 10 days
6.8
6.8

Hi there, To seamlessly integrate M-Pesa into your existing website, I will leverage my expertise with both PHP and API development. I'll set up the required STK Push functionality for the front end and ensure that it effectively communicates with the Safaricom Daraja API on the back end, including transaction validation and real-time updates to your database. After verifying that everything works in the Safaricom sandbox, I’ll transition to live credentials. Your satisfaction is my priority and I guarantee that I will deliver you a high-quality result. Regards, Ali
$15 USD in 1 day
6.4
6.4

I will integrate a complete M-Pesa payment solution with STK Push, Safaricom Daraja API, secure callback handling, real-time database updates, and seamless migration from sandbox to production. I'll deliver clean, well-documented code, deployment guidance, and a smooth handover to ensure your team can maintain it with confidence. Best Regards, Muhammad
$20 USD in 40 days
6.3
6.3

Hi, I can integrate Safaricom Daraja STK Push into your existing website and complete the full sandbox-to-production workflow. The backend will securely generate access tokens, initiate STK requests, store the CheckoutRequestID and MerchantRequestID, receive Safaricom callbacks, validate transaction details, and update the corresponding order in real time. I’ll add idempotency controls so repeated callbacks cannot create duplicate payments, along with timeout handling, failed/cancelled payment states, transaction-status queries, reconciliation logs, and clear customer feedback. Credentials and URLs will be isolated in environment files for sandbox and production. Callback endpoints will verify expected identifiers and amounts, log safely without exposing sensitive data, and return quickly to prevent unnecessary retries. Testing will cover successful payments, incorrect PINs, cancellations, timeouts, duplicate callbacks, delayed confirmations, invalid phone formats, and amount mismatches. Delivery includes the live integration, documented source code, configuration templates, deployment guide, and hand-over session. I can share a relevant M-Pesa integration example privately where client confidentiality permits, together with a clear explanation of my contribution. Question 1: What framework and database does the existing website use? Question 2: Is this PayBill or Till integration, and are live Daraja credentials already approved? Regards, Houssame
$20 USD in 40 days
6.7
6.7

Nairobi, Kenya
Payment method verified
Member since Jul 27, 2026
$3000-5000 USD
$10-30 USD
$1500-3000 USD
₹1500-12500 INR
$250-750 USD
$250-750 USD
$2-8 USD / hour
$250-750 USD
₹600-1500 INR
₹1500-12500 INR
₹37500-75000 INR
$10-30 USD
£10-20 GBP
₹12500-37500 INR
min $50 USD / hour
₹37500-75000 INR
₹12500-37500 INR
₹1500-12500 INR
₹12500-37500 INR
₹12500-37500 INR