KamiSama.Iso8583.Protocol
3.0.1
dotnet add package KamiSama.Iso8583.Protocol --version 3.0.1
NuGet\Install-Package KamiSama.Iso8583.Protocol -Version 3.0.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="KamiSama.Iso8583.Protocol" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KamiSama.Iso8583.Protocol --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KamiSama.Iso8583.Protocol, 3.0.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 KamiSama.Iso8583.Protocol as a Cake Addin #addin nuget:?package=KamiSama.Iso8583.Protocol&version=3.0.1 // Install KamiSama.Iso8583.Protocol as a Cake Tool #tool nuget:?package=KamiSama.Iso8583.Protocol&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
KamiSama.Iso8583
KamiSama.Iso8583 is a super fast .net standard library for Iso-8583 protocol parsing and composing. Iso-8583 is a financial protocol between financial switches in PSP and clients.
1. A fast guideline to use
Here is the code:
using KamiSama.Iso8583.Client;
var protocol = IsoProtocol.LoadFromXmlFile("./protocols/sample.protocol.xml");
var client = new Iso8583Client(protocol);
var requrst = new IsoMessage(0200);
request[2] = "28727276672"; //card pan
request[3] = "000000"; //purchase process code
//...
var macGenerator = IMacGenerator.FromKey("A0A12394897983");//some key hex value for ISO 8583 mac generation
var response = await client.SendAsync(request, "host-address", 10101, CancelationToken.None, Timeout.InfiniteTimeSpan);
2. Simple Coded Interface
The library provides simple interface for iso message. The bitmap (primary and secondary) fields are automatically set,
var message = new IsoMessage(100); // creates simple iso message with Message Type Indicator (MTI) 0100
message[2] = "1234123412341234"; // sample text
message[48] = new byte[] { 0x01, 0x02, 0x03, 0x04}; // sample byte[]
Console.WriteLine(message.PrimaryBitmap.ToDebugString());
Console.WriteLine(message.ToDebugString(52)); // excludes P52 (pin-block) to be written into the output
3. Protocols
see protocols
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- ExpressiveParser (>= 3.0.1)
- KamiSama.Extensions.Xml (>= 3.0.0)
- KamiSama.IranSystem (>= 3.0.0)
- KamiSama.Iso8583.Core (>= 3.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KamiSama.Iso8583.Protocol:
Package | Downloads |
---|---|
KamiSama.Iso8583.Client
rich ISO 8583 library to parse and compose messages and subset of the iso fields. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.1 | 71 | 11/15/2024 |
3.0.0 | 71 | 11/15/2024 |
2.8.2 | 137 | 3/30/2024 |
2.7.1 | 202 | 9/29/2023 |
2.0.3 | 269 | 4/27/2023 |
2.0.2 | 649 | 10/3/2021 |
2.0.1 | 540 | 9/21/2021 |
2.0.0 | 576 | 12/4/2020 |
2.0.0-beta2 | 368 | 12/4/2020 |
2.0.0-beta1 | 336 | 12/4/2020 |
1.2.1 | 925 | 6/16/2020 |
1.2.0 | 1,077 | 5/7/2020 |
1.1.0 | 698 | 4/2/2020 |