Mpesa.Net 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mpesa.Net --version 0.1.0                
NuGet\Install-Package Mpesa.Net -Version 0.1.0                
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.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mpesa.Net --version 0.1.0                
#r "nuget: Mpesa.Net, 0.1.0"                
#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.0

// Install Mpesa.Net as a Cake Tool
#tool nuget:?package=Mpesa.Net&version=0.1.0                

An Mpesa Library for .Net A Daraja Rest API .Net Library written in C#. Well documented and Unit tested.

alternate text is missing from this package README image

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() and IdentityParty()
    • 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

  1. Fork it (https://github.com/geofmureithi/Mpesa.Net/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.1 894 1/1/2019
0.1.0 700 12/31/2018