HowTos > Log Unredacted Credit Card Numbers |
You can enable the CreditCardRecognized event to fire when unredacted Primary Account Number (PAN) data (also known as credit card numbers) are recognized and handle this event to create logs or perform other actions required for compliance.
When the event is enabled, it is fired when unredacted PAN data is copied from the terminal to the clipboard or to a productivity tool. For IBM systems, the event is also fired when unredacted PAN data is displayed on the screen.
![]() |
Note: This event is fired only when a PAN is copied or displayed in its entirety ("in the clear"). It is not fired when only redacted PANs are copied or displayed. |
![]() |
This article contains tabbed content that is specific to each terminal type. Be sure the tab for your terminal type is selected. |
Log data using the CreditCardRecognized event |
Copy Code
|
---|---|
Rem This sample sends information about credit card access to a log file. 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 accessLog As String Dim path As String Dim fnum As Integer accessLog = "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, accessLog Close #fnum End Sub |
Log data using the CreditCardRecognized event |
Copy Code
|
---|---|
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 accessLog As String Dim path As String Dim fnum As Integer accessLog = "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, accessLog Close #fnum End Sub |