KamiSama.Iso8583.Client
3.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package KamiSama.Iso8583.Client --version 3.0.0
NuGet\Install-Package KamiSama.Iso8583.Client -Version 3.0.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="KamiSama.Iso8583.Client" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KamiSama.Iso8583.Client --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KamiSama.Iso8583.Client, 3.0.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 KamiSama.Iso8583.Client as a Cake Addin #addin nuget:?package=KamiSama.Iso8583.Client&version=3.0.0 // Install KamiSama.Iso8583.Client as a Cake Tool #tool nuget:?package=KamiSama.Iso8583.Client&version=3.0.0
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
- KamiSama.Iso8583.Protocol (>= 3.0.0)
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 |
---|---|---|
3.0.1 | 65 | 11/15/2024 |
3.0.0 | 73 | 11/15/2024 |
2.8.2 | 146 | 3/30/2024 |
2.7.1 | 164 | 9/29/2023 |
2.0.3 | 197 | 4/27/2023 |
2.0.2 | 486 | 10/3/2021 |
2.0.1 | 405 | 9/21/2021 |
2.0.0 | 421 | 12/4/2020 |
2.0.0-beta2 | 302 | 12/4/2020 |
2.0.0-beta1 | 286 | 12/4/2020 |
1.2.1 | 481 | 6/16/2020 |
1.2.0 | 496 | 5/7/2020 |
1.1.0 | 544 | 4/2/2020 |
1.0.0 | 892 | 8/14/2018 |