OpenSystemsHostCreditCardRecognizedHandler Event
Unredacted PAN is displayed or accessed.
Rem This sample sends information about credit card access to a log file.
Private Sub Terminal_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\Reflection\" & "log.txt"
fnum = FreeFile()
Open path For Append As fnum
Print #fnum, log
Close #fnum
End Sub