Command emv.open

Knowledge about the EMV standard is required to use this command.

The command emv.open is used to initialize the EMV library, allocating hardware and software resources necessary for the EMV Kernel operation. A successful call to this command is a prerequisite for all other EMV library calls.

Parameters

  1. mkslot [integer]
    Device slot that the master key is stored.
  2. pinpadtype [integer]
    PIN-Pad type:
    • 1: Internal
    • 2: External
  3. pinpadwk [string]
    Working key used on the pinpad session.
  4. showamount [integer]
    Defines whether the library should show the amount:
    • 1: Show the amount
    • 0: Does not show the amount
  5. variablereturn [integer]
    Return codes:
    • 0: OK
    • 14: Library already started
    • 16: Error

Example


In the example above, the command emv.open is used to initialize the device's EMV library. Since the command returns an integervariable, the command inttostring was used to convert the variable to stringvariable, displaying its content through the command display.