Command emv.processtransaction

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

The command emv.processtransaction continues the chip card handling process. If the command emv.inittransaction returns that a magnetic card was swiped, then this command should not be executed.

This command uses the timeout defined by emv.settimeout when capturing the PIN.

Parameters

  1. ctls [integer]
    Defines the transaction type contact-less or contact, where:
    • 1: Contact-less transaction
    • 0: Contact (standard) transaction
  2. 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
    • 16: Internal error
    • 19: Absence of data for the mandatory field 55, or mandatory data is not accessible (if that is the case, pass the tag on baOptionalTags)
    • 31: PIN-Pad communication error
    • 40: Execution error
    • 43: Card removed in the middle of the operation

Example


In the example above, the command emv.adddata is used to pass parameters to the EMV Kernel.

Then the command emv.processtransaction is executed to continue the chip card handling process. Since the command returns an integervariable, the command inttostring is used to convert the variable, displaying its content through the command display.