GithubHelp home page GithubHelp logo

sgatibaru / mpesa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from psycadelik/mpesa

0.0 0.0 0.0 213 KB

A demonstration of how to integrate Mpesa Express, C2B, B2C and B2B using the daraja API on safaricom

PHP 77.85% HTML 21.65% Vue 0.50%

mpesa's Introduction

Technologies used:

  • laravel 5.6
  • GuzzleHttp

APIs

  • Safaricom Daraja Api

Change Guide:

  • Git clone
  • Git checkout to your branch
  • Make changes and create a pull request

For use

  • Git clone

  • Composer install

  • create .env file and generate key

  • Run php artisan Mpesa:generateToken to create a token

  • open postman and test endpoints

Point to Note

  • register to developer.safaricom.co.ke
  • create consumer key and secret to populate .env with credentials

env structure

  • SAFARICOM_BASE_URL={https://sandbox.safaricom.co.ke/ - testing, production urls provided by safaricom on going live}
  • SAFARICOM_KEY={your key}
  • SAFARICOM_SECRET={your secret}
  • SAFARICOM_PAYBILL={your paybill no}
  • SAFARICOM_CALLBACK_URL={your callback url - MUST BE HTTPS}
  • SAFARICOM_CONFIRMATION_URL={your confirmation url - MUST BE HTTPS}
  • SAFARICOM_VALIDATION_URL={your validation url - MUST BE HTTPS}

set up ssl for domain urls

mpesa's People

Contributors

psycadelik 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.