Module mpesa::services[][src]

Expand description

MPESA Services

Using the builder pattern in this to procedurally build Mpesa service specific payloads which are ultimately consumed and the request sent by calling the send method. Some of the builder methods for certain services are optional with default values standing in their place when the builder gets consumed

Here are the currently available services:

  1. Account Balance
  2. B2B
  3. B2C
  4. C2B Register
  5. C2B Simulate

Also worth noting I am using reqwest::blocking::Client to make http requests. Research ongoing on how to make this crate async.

Structs

AccountBalanceBuilder
AccountBalanceResponse
B2bBuilder

B2B transaction builder struct

B2bResponse
B2cBuilder

B2C transaction builder struct

B2cResponse
C2bRegisterBuilder

C2B Register builder

C2bRegisterResponse
C2bSimulateBuilder
C2bSimulateResponse
MpesaExpressRequestBuilder
MpesaExpressRequestResponse