MPESADARAJA 1.0.7

.NET Framework
Install-Package MPESADARAJA -Version 1.0.7
dotnet add package MPESADARAJA --version 1.0.7
<PackageReference Include="MPESADARAJA" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MPESADARAJA --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MPESADARAJA, 1.0.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MPESADARAJA as a Cake Addin
#addin nuget:?package=MPESADARAJA&version=1.0.7

// Install MPESADARAJA as a Cake Tool
#tool nuget:?package=MPESADARAJA&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MpesaDaraja.Net

NugetPackage for .Net.

Supports .Net Framework 4.6.1 or higher.

Install the Nuget Package by going to Package Console Manager and type

             Install-Package MPESADARAJA -Version 1.0.7 

For C2B : include namespace using MpesaDaraja;

          string []result=  Mpesa.C2B(string consumerKey, string consumersecret, bool isSandbox, string paybill, decimal amount, string phone, string reference);

FOR B2B:

            string []result=   Mpesa.B2B(string consumerKey, string consumersecret, bool isSandbox, string initiatorName, string securityCredentials, decimal amount, string BusinessShortCode, string ReceivingBusinessShortCode, string remarks, string queueTimeUrl, string resultUrl, string accountRef, int SenderIdentifierType, int RecieverIdentifierType);
            

FOR B2C:

            string []result=Mpesa.B2C(string consumerKey, string consumersecret, bool isSandbox, string initiatorName, string securityCredentials, decimal amount, string Business, string customerPhone, string remarks, string queueTimeUrl,string resultUrl, string occassion);
            

FOR lipaNaMpesaOnline:

             string []result=Mpesa.LipaNaMpesaOnlineInitiate(string consumerKey, string consumersecret, string password,  bool isSandbox, DateTime TimeOfTransaction, decimal amount, string customerPhone, string  BusinessPaybillOrTill,   string callbackUrl, string accountRef, [StringLength(20)] string transactionDescription); 
             
             

To check LipaNaMpesaStatus:

             string[] result=Mpesa.LiLipaNaMpesaOnlineStatus(string consumerKey, string consumersecret, string password,  bool isSandbox, DateTime TimeOfTransaction, string BusinessShortcode, string checkoutRequestID);
             

For Transaction Status:

             string [] result=Mpesa.TransactionStatus(string consumerKey, string consumersecret, bool isSandbox, string    initiatorName,   string password,string transactionId,string BusinessPaybillOrTil, string remarks, string queueTimeUrl, string     resultUrl,string occassion);
             

For Reversal:

                 string [] result= Mpesa.Reversal(string consumerKey, string consumersecret, bool isSandbox, string initiatorName,  string password,string transactionId,decimal amount,string receiverparty, string remarks,string queueTimeUrl, string resultUrl,string occassion);
                 

For AccountBalance:

                 string[] result=AccountBalance(string consumerKey, string consumersecret, bool isSandbox, string initiatorName,  string password,string Business, string remarks, string queueTimeUrl, string resultUrl);
                 

For Authentication token:

                 string token=Authenticate(string consumerKey, string consumersecret, bool isSandbox);

Please Note if Its SandBox Indicate IsSandBox equals true. The string Password for B2C,B2B ,AccountBalance,Reversal indicates SecurityCredentials Make sure to get your credentials from https://developer.safaricom.co.ke

Product Versions
.NET Framework net
Compatible target framework(s)
Additional computed target framework(s)
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
1.0.7 933 4/16/2018

Included all the api endpoint streamlined the response made it easier to use the certificate...Included Production Urls