mpesa-rust

Version Documentation mpesa travis-ci License: MIT

About

A Rust wrapper around the Safaricom API for accessing M-Pesa services.

Notes

Warning! WIP, not production ready

Install & Usage

Cargo.toml

md [dependencies] mpesa = "0.1.6"

In your lib or binary crate: rs use mpesa::Mpesa;

Examples

```rs use mpesa::{Mpesa, Environment}; use std::env;

let client = Mpesa::new( env::var("CLIENTKEY")?, env::var("CLIENTSECRET")?, Environment::Sandbox, env::var("INIT_PASSWORD")?, ); ```

Author

Collins Muriuki

Contributing

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.