A Rust wrapper around the Safaricom API for accessing M-Pesa services.
Warning! WIP, not production ready
Cargo.toml
md
[dependencies]
mpesa = "0.1.6"
In your lib or binary crate:
rs
use mpesa::Mpesa;
```rs use mpesa::{Mpesa, Environment}; use std::env;
let client = Mpesa::new( env::var("CLIENTKEY")?, env::var("CLIENTSECRET")?, Environment::Sandbox, env::var("INIT_PASSWORD")?, ); ```
Collins Muriuki
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Copyright © 2020 Collins Muriuki.
This project is MIT licensed.