Command emv.inittransaction

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

The command emv.inittransaction starts the processing of the EMV card, either magnetic stripe or chip. At this time, the EMV library will ask the card for insertion/swipe in order to choose and start the EMV application on the smartcard. The response is the card data to be analyzed by the device application.

This instruction uses the timeout set for card insertion and choice of application, if it has been defined by emv.settimeout.


  1. variablereturn [integer]
    Variable that will store the return code, where:
    • 0: OK
    • 11: Invalid parameter passed on emv.adddata
    • 12: Timeout
    • 13: Insert, card swipe or choose application operation canceled by the user
    • 15: Library EMV not initiated


In the example above, the command emv.cleanstructures was used to clean the data structures, and the command emv.adddata was used pass the parameters to the EMV Kernel.

After that, the command emv.inittransaction is executed to start the EMV processing. As the command return code is an integervariable, the command inttostring is used to convert the variable that will be displayed using the command display.