An open API service indexing awesome lists of open source software.

https://github.com/i1d9/exmpesa

M-Pesa STK API using Phoenix
https://github.com/i1d9/exmpesa

elixir phoenix phoenix-framework

Last synced: 15 days ago
JSON representation

M-Pesa STK API using Phoenix

Awesome Lists containing this project

README

          

# Exmpesa

To start your Phoenix server:

* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.setup`
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).

# Local Tests

Create dev.secret.exs
```elixir

import Config

config :mpesa_api,
consumer_key: "YOUR KEY",
consumer_secret: "YOUR SECRET",
call_back_url: "YOUR CALL BACK URL TO PROCESS TRANSACTION RESULTS FROM MPESA",
online_pass_key: "YOUR PASS KEY",
online_short_code: "YOUR ONLINE SHORT CODE"

```