{"id":18000136,"url":"https://github.com/johninvictus/mpesa_elixir","last_synced_at":"2025-10-04T23:52:14.342Z","repository":{"id":62429929,"uuid":"128200713","full_name":"johninvictus/mpesa_elixir","owner":"johninvictus","description":"Mpesa wrapper for mpesa API","archived":false,"fork":false,"pushed_at":"2025-06-03T19:17:38.000Z","size":44805,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-27T15:06:22.858Z","etag":null,"topics":["daraja","elixir","library","mpesa","mpesa-api"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johninvictus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2018-04-05T12:08:14.000Z","updated_at":"2025-06-03T19:17:41.000Z","dependencies_parsed_at":"2025-06-03T14:56:12.705Z","dependency_job_id":"4e3b5de7-d7b3-4a32-93f4-7b3151d3c6ee","html_url":"https://github.com/johninvictus/mpesa_elixir","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/johninvictus/mpesa_elixir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johninvictus%2Fmpesa_elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johninvictus%2Fmpesa_elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johninvictus%2Fmpesa_elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johninvictus%2Fmpesa_elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johninvictus","download_url":"https://codeload.github.com/johninvictus/mpesa_elixir/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johninvictus%2Fmpesa_elixir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278391191,"owners_count":25978944,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","library","mpesa","mpesa-api"],"created_at":"2024-10-29T23:09:47.352Z","updated_at":"2025-10-04T23:52:14.314Z","avatar_url":"https://github.com/johninvictus.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPESA ELIXIR\n\n\u003e ELixir Wrapper for Mpesa Daraja APIs\n\u003e https://developer.safaricom.co.ke/APIs\n\n## Table of contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Documentation](#documentation)\n- [Contribution](#contribution)\n- [Contributors](#contributors)\n- [Licence](#licence)\n\n## Features\n\n- [x] STK Push\n- [x] C2B\n- [x] QRCode\n- [x] Request universal MPESA API call\n\n## Installation\n\nIf [available in Hex](https://hex.pm/packages/mpesa_elixir), the package can be installed\nby adding `mpesa_elixir` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:mpesa_elixir, \"~\u003e 0.2.1\"}\n  ]\nend\n```\n\n## Configuration\n\nCreate a copy of `config/dev.exs` or `config/prod.exs` from `config/dev.sample.exs`\nUse the `sandbox` key to `true` when you are using sandbox credentials, change to `false` when going to `:prod`, this will change the baseurl to point to production\n\n### Mpesa (Daraja)\n\nMpesa Daraja API link: https://developer.safaricom.co.ke\n\nAdd below config to dev.exs / prod.exs files\nThis asumes you have a clear understanding of how [Daraja API works](https://developer.safaricom.co.ke/get-started).\n\nIn this wrapper I decided to only add credentials to config for flexibility and avoid config bloating.\nAdd these configuration to runtime config (for production)\n```elixir\nconfig :mpesa_elixir,\n  sandbox: true, # change this if you are in production\n  consumer_key: \"your consumer key\",\n  consumer_secret: \"your consumer secret\",\n  pass_key: \"your pass key\"\n```\n\nIf you dont want to start the auth server when testing, add this to your test.exs, you need to do this in order to avoid auth warnings when testing, by default it is set to true\n```elixir\nconfig :mpesa_elixir,\n  auto_start_auth_server: false\n```\n\n## Documentation\n\nThe docs can be found at [https://hexdocs.pm/ex_mpesa](https://hexdocs.pm/mpesa_elixir)\n\n## Contribution\n\nIf you'd like to contribute, start by searching through the [issues](https://github.com/johninvictus/mpesa_elixir/issues) and [pull requests](https://github.com/johninvictus/mpesa_elixir/pulls) to see whether someone else has raised a similar idea or question.\nIf you don't see your idea listed, [Open an issue](https://github.com/johninvictus/mpesa_elixir/issues).\n\nCheck the [Contribution guide](contributing.md) on how to contribute.\n\n## Contributors\n\nAuto-populated from:\n[contributors-img](https://contributors-img.firebaseapp.com/image?repo=johninvictus/mpesa_elixir)\n\n\u003ca href=\"https://github.com/johninvictus/mpesa_elixir/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.firebaseapp.com/image?repo=johninvictus/mpesa_elixir\" /\u003e\n\u003c/a\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohninvictus%2Fmpesa_elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohninvictus%2Fmpesa_elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohninvictus%2Fmpesa_elixir/lists"}