Trait mpesa::environment::ApiEnvironment
source · pub trait ApiEnvironment: Clone {
// Required methods
fn base_url(&self) -> &str;
fn get_certificate(&self) -> &str;
}
Expand description
Expected behavior of an Mpesa
client environment
This abstraction exists to make it possible to mock the MPESA api server for tests