---
title: "Discussion on \"How to integrate the Mpesa STK push API in Nodejs.\" | Hashnode"
description: "Discussion on \"How to integrate the Mpesa STK push API in Nodejs.\". Lipa na Mpesa STK push Nodejs  (Mpesa Express)"
url: "https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to integrate the Mpesa STK push API in Nodejs.](https://wamaithanyamu.com/how-to-integrate-the-mpesa-stk-push-api-in-nodejs?utm_source=hashnode&utm_medium=feed)

Lipa na Mpesa STK push Nodejs (Mpesa Express)

Aug 20, 2022 · 8 min read · wamaithanyamu.com  
Updated Feb 28, 2023  
Read the article

-   [#mpesa](https://hashnode.com/tag/mpesa)
-   [#apis](https://hashnode.com/tag/apis)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mobile-money](https://hashnode.com/tag/mobile-money)
-   [#transactions](https://hashnode.com/tag/transactions)

## Written by

[Wamaitha](https://hashnode.com/@Wamaitha)

@Wamaitha · Nairobi, Kenya

  
[View profile](https://hashnode.com/@Wamaitha)

Software Engineer || AI Engineer || Technical Writer

Curiosity on steroids.

## Responses 5

Markdown supported · ⌘↵ to post

[Haron Mburu Kiarii](https://hashnode.com/@HKMBURU)

[Mar 16, 2024](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/65f5dfb5318b8e8ac2dfccf2)

working. Thank you very much

[Dev Jimin](https://hashnode.com/@jimin161)

[Oct 11, 2023](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/652647a9c4a77ce72121caa5)

confirmPayment is being requested from the controller but it has not been defined

[Fredrick Mbugua](https://hashnode.com/@fredmbugua)

[Oct 3, 2023](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/651beaa12638ec86a7634a78)

the code was working on my side before, but after a maintainance that took place a week ago from now, ot's now not working

[Fredrick Mbugua](https://hashnode.com/@fredmbugua)

[Oct 30, 2023](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/651beaa12638ec86a7634a78#reply-653f678e503f3d9ea16903c9)

I found out what was wrong, but from my end, your code is working well

[pnk lists](https://hashnode.com/@pnklists)

[Jun 20, 2023](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/64920b75aa3e031681683bc2)

Hello, love the insight, how can I get assistance integrating mpesa to my project?

[Wamaitha](https://hashnode.com/@Wamaitha)

[Jun 27, 2023](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/64920b75aa3e031681683bc2#reply-649a963564e19e74c4064ab6)

Shoot me a dm on twitter [twitter.com/wamaithanyamu](https://twitter.com/wamaithanyamu)

[Ondiek Elijah](https://hashnode.com/@Ondiek)

[Oct 24, 2022](https://hashnode.com/posts/how-to-integrate-the-mpesa-stk-push-api-in-nodejs/630096b874730d13020f16b6/comment/63563f33f1b7b0d89235a61d)

What an exciting and informative article. Well put & simplified.
