KamiSama.Iso8583.Core
2.8.2
dotnet add package KamiSama.Iso8583.Core --version 2.8.2
NuGet\Install-Package KamiSama.Iso8583.Core -Version 2.8.2
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.Core" Version="2.8.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KamiSama.Iso8583.Core --version 2.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KamiSama.Iso8583.Core, 2.8.2"
#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.Core as a Cake Addin
#addin nuget:?package=KamiSama.Iso8583.Core&version=2.8.2
// Install KamiSama.Iso8583.Core as a Cake Tool
#tool nuget:?package=KamiSama.Iso8583.Core&version=2.8.2
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 | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- KamiSama.Extensions.Core (>= 2.8.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KamiSama.Iso8583.Core:
Package | Downloads |
---|---|
KamiSama.Iso8583.Protocol
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.