Giter Site home page Giter Site logo

chase-mpesa's Introduction

This documents the API for programmatically sending money from your M-Pesa account.

Overview

Requests must be made using authenticated HTTP POST requests to certain URLs on the website.

Site URIs:

The authentication is HTTP basic auth using the username and password assigned by Chase Bank.

Submitting a Transaction

POST to /api/eft.

Headers must include

  • Authorization header (HTTP basic auth with your username/password)
  • Content-type: application/json

The body of the POST is a JSON stream with the following structure:

{
// 0 is bank-to-bank, 1 is bank-to-mobile
"Type": 0 or 1,

// ID of company, assigned by Chase Bank
"CompanyId": '00000000-1111-2222-3333-444444444444',

// Comment on this batch.
"Remarks": "My Testing",

// List of transactions to make:
"OrderLines": [
    
    {
    // Name of recipient. Not checked against government database.
    "Payee": "Name Name",

    // Phone # or account # of recipient - where the money is going
    "PrimaryAccountNumber": "1116031422",

    // Amount of money you are sending
    "Amount": 3000,
    
    // Recipient bank. Required for bank-to-bank. Omit for bank-to-mobile.
    "BankCode": "30011",

    // Internal reference for your own purposes.
    "Reference": "Salary1",
    }, 

    // ...Additional Orders as necessary...

    ]
}

chase-mpesa's People

Contributors

lincolnq avatar

Stargazers

Jorge Ch. avatar

Watchers

 avatar James Cloos 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.