Git Product home page Git Product logo

pmutua / conduit Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 126 KB

REST API integrated with third party Safaricom's Mpesa Daraja API an Application Programming Interface that creates a bridge for payment integration to web and mobile apps.

License: MIT License

JavaScript 99.83% Procfile 0.17%
nodejs javascript mongodb expressjs daraja-api mpesa mpesa-api mpesa-payments payment-gateway payment-integration

conduit's Introduction

Conduit

Conduit Logo

Conduit is an API that has been integrated with Safaricom’s Mpesa Daraja API.

GitHub license

Download and Installation

To begin using this template, choose one of the following options to get started:

Usage

To run locally, create a .env in the root of the project and add the following environment variables:

YOUR_APP_CONSUMER_KEY="add consumer key here"
YOUR_APP_CONSUMER_SECRET="add consumer secret here"
MONGODB_URI="mongodb+srv://root:<password>@<clustername>.euctx.mongodb.net/<databasename>?retryWrites=true&w=majority"
MPESA_PASS_KEY="add mpesa passkey here"
LIPA_NA_MPESA_CALLBACK_URL="add callback url here"
LIPA_NA_MPESA_SHORT_CODE="add mpesa short code here"
LIPA_NA_MPESA_PARTYB=add mpesa party b here
LIPA_NA_MPESA_STK_PUSH_REQUEST_URL="add  mpesa stk push request url here"
C2B_SHORT_CODE="add c2b shortcode"
C2B_CONFIRMATION_URL="http://localhost:3000/c2b/confirmation"
C2B_VALIDATION_URL="http://localhost:3000/c2b/validation"
C2B_REGISTER_URL="add c2b register url"
DARAJA_ACCESS_TOKEN_URL="add daraja access token url"

Then in your terminal where your project is run:

    npm install
    npm start

The API is accessible at http://localhost:3000

Bugs and Issues

Have a bug or an issue with this API? Open a new issue here on GitHub.

About

An API that has been integrated with Safaricom’s Mpesa Daraja API. The API features include ability to send payment prompts on the customers phone to the customer’s MPESA registered phone number requesting them to enter an MPESA pin to authorize and complete payment. Another feature is ability to make payment requests from Client to Business (C2B).

Conduit was created by and is maintained by Philip Mutua.

Technologies Used

  • JavaScript
  • Node.js
  • Express.js
  • MongoDB

Copyright and License

Code released under the MIT license.

Future Plans

Looking forward to make more improvements on C2B and Lipa na Mpesa modules.

Author

Philip Mutua

conduit's People

Contributors

pmutua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.