{"id":20677379,"url":"https://github.com/manuelgeek/mpesa_elixir","last_synced_at":"2025-12-11T23:37:57.023Z","repository":{"id":115496228,"uuid":"244198729","full_name":"manuelgeek/mpesa_elixir","owner":"manuelgeek","description":"This is wrapper(Elixir) for Daraja Mpesa STK implementation(Lipa na Mpesa Online)","archived":false,"fork":false,"pushed_at":"2020-08-07T11:07:32.000Z","size":1636,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T02:42:38.009Z","etag":null,"topics":["daraja","elixir-lang","mpesa","phoenix-framework"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/mpesa/Mpesa.html","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuelgeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-01T18:06:40.000Z","updated_at":"2021-05-29T15:52:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dcd865e-6d6b-4d45-8819-f23db6d76b2b","html_url":"https://github.com/manuelgeek/mpesa_elixir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2Fmpesa_elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2Fmpesa_elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2Fmpesa_elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelgeek%2Fmpesa_elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelgeek","download_url":"https://codeload.github.com/manuelgeek/mpesa_elixir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249800243,"owners_count":21327026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daraja","elixir-lang","mpesa","phoenix-framework"],"created_at":"2024-11-16T21:15:25.003Z","updated_at":"2025-12-11T23:37:51.992Z","avatar_url":"https://github.com/manuelgeek.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://www.travis-ci.com/manuelgeek/mpesa_elixir.svg?branch=master)](https://www.travis-ci.com/manuelgeek/mpesa_elixir)\n![hex badge](https://img.shields.io/hexpm/dt/mpesa)\n# Mpesa Elixir\nPhoenix(Elixir) wrapper for Mpesa STK(Lipa na Mpesa Online) implentation.\n\n## Table of contents\n - [Features](#features)\n - [Installation](#installation)\n - [Configuration](#configuration)\n - [Usage](#usage)\n - [Documentation](#documentation)\n - [Author](#author)\n - [Licence](#licence)\n\n## Features\n\n## Installation\n\nThe package can be installed\nby adding `mpesa` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:mpesa, \"~\u003e 0.1.2\"}\n  ]\nend\n```\nRun `mix deps.get` to fetch from Hex\n\n## Configuration\n\nAdd below config to dec.exs / prod.exs files \nThis asumes you have a clear understanding of how Daraja API works.\n\nThe `env` is either `sandbox` or `production`\n\n`dev.exs` These are sandbox credentials given by Safaricom\n```elixir\nconfig :mpesa,\n  env: \"sandbox\",\n  consumer_key: \"72yw1nun6g1QQPPgOsAObCGSfuimGO7b\",\n  consumer_secret: \"vRzZiD5RllMLIdLD\",\n  mpesa_short_code: \"174379\",\n  mpesa_passkey: \"bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919\",\n  mpesa_callback_url: \"http://91eb0af5.ngrok.io/api/payment/callback\"\n  ```\n\n\n`prod.secret.exs`\n```elixir\nconfig :mpesa,\n  env: \"production\",\n  consumer_key: \"\",\n  consumer_secret: \"\",\n  mpesa_short_code: \"\",\n  mpesa_passkey: \"\",\n  mpesa_callback_url: \"\"\n```\n\n\n## Usage \n\n```elixir\niex\u003e Mpesa.make_request(10, \"254724540039\", \"reference\", \"description\")\n      {:ok,\n        %{\n        \"CheckoutRequestID\" =\u003e \"ws_CO_010320202011179845\",\n        \"CustomerMessage\" =\u003e \"Success. Request accepted for processing\",\n        \"MerchantRequestID\" =\u003e \"25558-10595705-4\",\n        \"ResponseCode\" =\u003e \"0\",\n        \"ResponseDescription\" =\u003e \"Success. Request accepted for processing\"\n        }}\n\n        {:error, \"Invalid Access Token\"}\n```\n\n## Documentation \n [https://hexdocs.pm/mpesa](https://hexdocs.pm/mpesa/Mpesa.html).\n\n ## Author\n \u003cp align=\"center\"\u003e\u003cimg src=\"https://magak.me/assets/images/Geek-logo.png\" width=\"150\"\u003e\u003c/p\u003e\n \n\n[ManuEl Geek](https://magak.me)\n\n## Licence\n\nMpesa Elixir is released under [MIT License](https://github.com/appcues/exsentry/blob/master/LICENSE.txt)\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge)](#)\n\n[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source-200x33.png?v=103)](#)\n\n\nHappy coding, Star before Fork 😊💪💯\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgeek%2Fmpesa_elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelgeek%2Fmpesa_elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgeek%2Fmpesa_elixir/lists"}