Log Credit Card Access
You can fire the CreditCardRecognized event whenever a credit card is displayed. You can handle this event to create logs or perform other actions required for compliance.
Note: This event is fired only when a Primary Account Number (PAN) is displayed in its entirety ("in the clear"). It is not fired when only redacted PANs are displayed.
To log credit card access
//Set up the event handler to get the data you want to collect
void ibmTerminal_CreditCardRecognized(object sender, CreditCardRecognizedEventArgs e)
Console.Write(("\n" + "Credit Card Number Viewed on Screen \n"
+ "Date and Time: " + e.DateTime.ToString() + " \n"
+ "Machine name: " + e.MachineName.ToString() + " \n"
+ "User ID: " + e.UserId.ToString() + " \n"
+ "Card number: " + e.RedactedAccountNumber + "\n"));
//Attach the event handler to the IbmTerminal object's CreditCardRecognized event,
//where ibmTerminal is an instance of IbmTerminal.
ibmTerminal.CreditCardRecognized += new CreditCardRecognizedEventHandler(ibmTerminal_CreditCardRecognized);