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
- Host: GitHub
- URL: https://github.com/i1d9/exmpesa
- Owner: i1d9
- Created: 2022-05-16T19:43:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-17T10:12:20.000Z (about 4 years ago)
- Last Synced: 2025-02-23T11:41:39.672Z (over 1 year ago)
- Topics: elixir, phoenix, phoenix-framework
- Language: Elixir
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```