Mpesa.Net
0.1.1
dotnet add package Mpesa.Net --version 0.1.1
NuGet\Install-Package Mpesa.Net -Version 0.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mpesa.Net" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mpesa.Net --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mpesa.Net, 0.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mpesa.Net as a Cake Addin #addin nuget:?package=Mpesa.Net&version=0.1.1 // Install Mpesa.Net as a Cake Tool #tool nuget:?package=Mpesa.Net&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
An Mpesa Library for .Net A Daraja Rest API .Net Library written in C#. Well documented and Unit tested.
Installation
dotnet add package Mpesa.Net
Usage example
ExtraConfig configs = new ExtraConfig
{
ShortCode = 600111,
Initiator = "initiator",
LNMShortCode = 12345,
LNMPassWord = "....",
SecurityCredential = "....",
CertPath = "~/c-sharp-mpesa-lib/Mpesa/cert.cer"
};
Api mpesa = new Api(Env.Sandbox, "consumerKey", "consumerSecret", configs);
For more examples and usage, please refer to the Wiki.
APIs
- OAuth
- AccountBalance
- B2B
- B2C
- C2BSimulate
- C2BRegister
- LipaNaMpesaOnline
- LipaNaMpesaQuery
- ReversalRequest
- TransactionStatus
Development setup
Assuming you have dotnet
installed, To setup development environment just clone and get working 😃
git clone https://github.com/geofmureithi/Mpesa.Net
cd Mpesa.Net
dotnet test
Release History
- 0.1.0
- The first proper release
- INTRODUCED:
CommandID()
andIdentityParty()
- Added Testing and Comprehensive Documentations
- 0.0.1
- Work in progress
Meta
Geoff Mureithi – @GeoMureithi
Distributed under the Apache-2 license. See LICENSE
for more information.
https://github.com/geofmureithi
Contributing
- Fork it (https://github.com/geofmureithi/Mpesa.Net/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- BouncyCastle (>= 1.8.3.1)
- RestSharp (>= 106.4.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.