Portalum / Portalum.Zvt

A .NET Zvt Library for Payment Terminals (C#)
MIT License
88 stars 36 forks source link

Incorrect parsed Terminal-ID #9

Closed silence87 closed 2 years ago

silence87 commented 2 years ago

https://github.com/Portalum/Portalum.Zvt/blob/c132a37062c380cd35c1ac26f6e1138a6f796de9/src/Portalum.Zvt/Parsers/BmpParser.cs#L724-L725

Terminal ID is 4-Byte-BCD.

Suggested Solution: //Array.Reverse(data); var terminalIdentifier = NumberHelper.BcdToInt(data);

tinohager commented 2 years ago

Thanks for the info I have fixed the problem

tinohager commented 2 years ago

@silence87 Do you use the nuget package or our ControlPanel?

silence87 commented 2 years ago

@tinohager I used the ControlPanel from source.