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

Required Methods§

source

fn base_url(&self) -> &str

source

fn get_certificate(&self) -> &str

Implementors§