mpesa-rust

Version Documentation mpesa travis-ci License: MIT Twitter: collinsmuriuki_

https://travis-ci.com/collinsmuriuki/mpesa-rust.svg?branch=master

About

A Rust wrapper around the Safaricom API for accessing M-Pesa services. Currently, a work in progress project.

Notes

Do not use in production yet, still in development

RoadMap

Install & Usage

In your Cargo.toml file:

md [dependencies] mpesa = "0.0.1"

In your lib or binary crate: ```rs extern crate mpesa;

use mpesa::Mpesa; ```

Examples

Use dotenv crate to store your keys as environmental variables instead of hard coding them like done in the example below.

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

let client = Mpesa::new( String::from("yourclientkey"), String::from("yourclientsecret"), Environment::Sandbox, String::from("yourinitiatorpassword"), ); ```

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.

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2020 Collins Muriuki.
This project is MIT licensed.