Used to retrieve the current encryption keys from Paymentech.
public void RequestCurrentKeys();
Public Sub RequestCurrentKeys()
This method retrieves the current encryption keys from Paymentech, and stores them in the PINKey and MACKey properties. These keys are used by the PIN pad device to encrypt customer PINs and to create and validate MAC hash values, and are normally updated after every Authorize transaction. But when the PIN pad is first initialized (or when the PIN pad becomes out of sync with the Paymentech Server) you must retrieve the current keys using this method.
Keys are required to be renewed every:
- 200 Transactions
- 24 Hours
- Each time a Batch is released for settlement
- Whenever the PIN pad loses sync with the server
If the ForceKeyRequest field is True after any transaction, you must immediately perform a RequestCurrentKeys transaction before sending any more authorizations.
component.MerchantNumber = "yourMerchantNumber" component.TerminalNumber = "100" component.ClientNumber = "0002" component.UserId = "yourUserId" component.Password = "yourPassword" component.SequenceNumber = 1 component.PinPadSerialNumber = "FFFFFFFFFFFFFFFF" ' retrieved from your PIN Pad component.RequestCurrentKeys()Now load the PINKey and MACKey into the PIN Pad device.
.NET Standard Notes
To call this method in an asynchronous manner call RequestCurrentKeysAsync instead. When the method completes (or an error is encountered) the RequestCurrentKeysCompleted event will fire.