Package-level declarations

Types

Link copied to clipboard
class Mpesa(consumerKey: String, consumerSecret: String, environment: Environment = Environment.SANDBOX, shouldEnableLogging: Boolean = environment == Environment.SANDBOX, httpClientEngine: HttpClientEngine? = null, val cache: Cache<Long, AccessToken> = Cache.Builder<Long, AccessToken>().build(), httpClientConfig: HttpClientConfig<*>.() -> Unit = { commonKtorConfiguration( consumerKey, consumerSecret, environment, shouldEnableLogging, cache ).invoke(this) }, httpClient: HttpClient = createHttpClient(httpClientEngine, httpClientConfig))

Provides various methods to interact with the Daraja v2.0 M-PESA API. For the official documentation, see Safaricom developer website.