MpesaLib 3.2.12

.Net Standard Mpesa API  Library for .NET developers.

Install-Package MpesaLib -Version 3.2.12
dotnet add package MpesaLib --version 3.2.12
<PackageReference Include="MpesaLib" Version="3.2.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MpesaLib --version 3.2.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

BREAKING CHANGE: As from version 3.2.12 class properties have private setters and can only be modified during initialization by passing all the parameters via constructor arguments.

// Update any data transfer objects in your project this way...

var MpesaExpressObject = new LipaNaMpesaOnlineDto
(
"BusinessShortCode",// businessShortCode
Timestamp, //Timestamp
"TransactionType", //transactionType
"Amount", // amount
"PartyA" ,// partyA
"PartyB" ,// partyB
"PhoneNumber", // phoneNumber
"CallBackURL", // callBackUrl
"AccountReference" ,//accountReference
"TransactionDesc" ,//transactionDescription
"Passkey" //passkey
);

//Make payment request
var paymentrequest = await _mpesaClient.MakeLipaNaMpesaOnlinePaymentAsync(MpesaExpressObject, accesstoken, RequestEndPoint.LipaNaMpesaOnline));

FULL DOCUMENTATION: https://ayiemba.github.io/MpesaLib/

BREAKING CHANGE: As from version 3.2.12 class properties have private setters and can only be modified during initialization by passing all the parameters via constructor arguments.

// Update any data transfer objects in your project this way...

var MpesaExpressObject = new LipaNaMpesaOnlineDto
(
"BusinessShortCode",// businessShortCode
Timestamp, //Timestamp
"TransactionType", //transactionType
"Amount", // amount
"PartyA" ,// partyA
"PartyB" ,// partyB
"PhoneNumber", // phoneNumber
"CallBackURL", // callBackUrl
"AccountReference" ,//accountReference
"TransactionDesc" ,//transactionDescription
"Passkey" //passkey
);

//Make payment request
var paymentrequest = await _mpesaClient.MakeLipaNaMpesaOnlinePaymentAsync(MpesaExpressObject, accesstoken, RequestEndPoint.LipaNaMpesaOnline));

FULL DOCUMENTATION: https://ayiemba.github.io/MpesaLib/

Release Notes

- Minor Design Enhancements
      - Instantiate Data transfer objects by passing constructor arguments

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.2.12 53 4/25/2020
3.2.4 338 3/21/2019
3.2.3 202 3/17/2019
3.2.1 233 2/16/2019
3.1.2 266 1/8/2019
3.0.133 276 12/13/2018
2.3.2 318 11/4/2018
2.1.1 283 10/5/2018
2.1.0 276 9/27/2018