CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: ZVT, EC-Cash

  1. #1
    Join Date
    Aug 2015
    Posts
    6

    ZVT, EC-Cash

    Hi!
    I got to program a simple cashier-system. It shall be able to control a Credit-Card reader.
    the card reader can be controlled using a "ZVT"-Connecor. On the side of my program I got to program such a ZVT-Connector by myself.
    Do you have any hints for me? Has someone done something similar?

    Thanks in advance!

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: ZVT, EC-Cash

    I have no idea what you mean by ZVT connector. PCs have USB ports, Network ports, Display ports and possibly serial and/or parallel ports.

    If what you are talking about is some kind of USB adapter then it should have driver software available if needed and it should have documentation to tell you how to use it.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Aug 2015
    Posts
    6

    Re: ZVT, EC-Cash

    Thanks, DataMiser!

    It seems that I didn't understand, how specific my question is. So I didn't wrote about the ciurcumstances.

    The ZVT stands for a protocol used in Germany (and similar in all Europe?) which handles the whole process of paying with a credit card and other plastic money. ZVT stands for ZahlungsVerkehrTerminal.

    As ZVT does not only handle the commuication between the terminal an the computer of the cashier-system, but also between the terminal and the bank, the whole financial transaction, PIN-handling, encryption, verification, .... it is quite complicated.

    I have found additional info: it seems, that alle the suppliers for those creditcard-terminals have an organsiation: "Verband der Terminalhersteller". On thier homepage "www.terminalhersteller.de" there is at least a detailed description of the protocol. As I only want to "tell" the terminal which price I want to charge, I hope that I need almost nothing of that major and feature-rich protocol.

    The vendor "ingenico" uses another protocol: O. P. I. (Open Payment Initiative) for thier terminals, this protocol seems to be a lot easier to implement, as it is only meant for the needs I actuually have.

    I'm sure that I'm not the first one to program a software that tells the terminal which price it shall ask for. But it is irritating to me, how litte info I can find in the internet. I was originally hopeing for a sample code, that would be easy to adapt to my project.

    I hope for an easy description like that, possibly even a sample code:
    Use RS232 or TCP/IP.
    PC->Terminal: Initiate Session (incl. Password,...)
    Terminal->PC: Accepted
    PC->Terminal: Send Value: 9.55€
    Terminal->PC: Accepted, Waiting for User-Action
    (Customer ist entering Card, PIN, ....)
    Terminal->PC: Payment Success, closing.

    Well, sure, this is only what I hoped for.

    It seems that I found a surprisingly seldom used problem, as almost every cashier-system is PC-based and almost every card-terminal is controlled from that system.

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: ZVT, EC-Cash

    If you are using RS232, then there's loads of info available about programming RS232 using vb.net. Once you are able to communicate with the device, then the ZVT protocol will specify what data needs to be sent and what is received (which you're now got). Also when dealing with serial ports (RS232), it's very useful to have a terminal emulator (eg YAT etc) to directly send data to the port and to see what data is being received.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: ZVT, EC-Cash

    There are also samples included with VB.Net for using TCP/IP. Samples for TCP Server, TCP CLient and Sockets. I use the sockets myself in my TCP/IP programming, it can be a little more complicated than using the TCP Client or Serial component but also gives you more control. Most of the time communicating with an external device is fairly simple you just have to know exactly what the device expects to see from the host and exactly what it will send back under various conditions. Your protocol info should tell you that part.
    Always use [code][/code] tags when posting code.

  6. #6
    Join Date
    Nov 2021
    Posts
    1

    Re: ZVT, EC-Cash

    Hi i have found this project on GitHub https://github.com/Portalum/Portalum.Payment.Zvt

    The most important functions are already implemented there. There is also a test application with which the terminal can be tested. I hope the project helps you.

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: ZVT, EC-Cash

    Quote Originally Posted by live2 View Post
    Hi i have found this project on GitHub https://github.com/Portalum/Portalum.Payment.Zvt

    The most important functions are already implemented there. There is also a test application with which the terminal can be tested. I hope the project helps you.
    Well, if the OP is so patient to wait for a possible solution for almost 18 months then yep, it could help him!
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured