PinPadBase.ComputeMacImpl Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
The PinPadBase class calls ComputeMacImpl from its ComputeMac method.
Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)
Syntax
'Declaration
Protected MustOverride Function ComputeMacImpl ( _
inMsg As String _
) As String
protected abstract string ComputeMacImpl (
string inMsg
)
protected:
virtual String^ ComputeMacImpl (
String^ inMsg
) abstract
protected abstract String ComputeMacImpl (
String inMsg
)
protected abstract function ComputeMacImpl (
inMsg : String
) : String
Parameters
- inMsg
Contains the message that the application intends to send to the EFT Transaction Host.
Remarks
The PinPadBase class calls ComputeMacImpl from its ComputeMac method. ComputeMacImpl must be implemented by the service object. Before calling the ComputeMacImpl, the PinPadBase class ensures that the following is true:
The PIN pad has been opened, claimed, and enabled;
The PIN pad is in EFT Transaction Mode; and
The PinEntryEnabled property is set to FALSE.
If these validations succeed, the PinPadBase class calls ComputeMacImpl. If either of the above conditions aren’t met, the PinPadBase class throws an exception.
The service object should throw PosControlException exceptions when errors occur.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
PinPadBase Class
PinPadBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PinPad.ComputeMac Method
PinPadBase.ComputeMac Method
PinPad.PinEntryEnabled Property