IBMHostCreditCardRecognizedHandler Event
Unredacted PAN is displayed or accessed.
Rem This sample sends information about credit card access to a log file.
Rem For Open Systems, use Terminal_CreditCardRecognized instead of IbmTerminal_CreditCardRecognized
Private Sub IbmTerminal_CreditCardRecognized(ByVal sender As Variant, ByVal AccountNumber As String, ByVal User As String, ByVal MachineName As String, ByVal UserDomainName As String, ByVal DateTime As String, ByVal EventType As String, ByVal success As Long)
Dim log As String
Dim path As String
Dim fnum As Integer
log = "Account number: " + AccountNumber + " User: " + User + " Machine name: " + MachineName + "," +
"Time: " + DateTime
path = "C:\Users\Public\Documents\Micro Focus\InfoConnect\" & "log.txt"
fnum = FreeFile()
Open path For Append As fnum
Print #fnum, log
Close #fnum
End Sub