mpesa 0.1.6

A wrapper around the M-PESA API in Rust.
Documentation

mpesa-rust

About

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

Notes

Warning! WIP, not production ready

Install & Usage

Cargo.toml

[dependencies]
mpesa = "0.1.6"

In your lib or binary crate:

use mpesa::Mpesa;

Examples

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

let client = Mpesa::new(
      env::var("CLIENT_KEY")?,
      env::var("CLIENT_SECRET")?,
      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.