Share via


PinPadBase.ComputeMac Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Tells the service object to compute a MAC value and return it to the application.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Public Overrides Function ComputeMac ( _
    inMsg As String _
) As String
public override string ComputeMac (
    string inMsg
)
public:
virtual String^ ComputeMac (
    String^ inMsg
) override
public String ComputeMac (
    String inMsg
)
public override function ComputeMac (
    inMsg : String
) : String

Parameters

  • inMsg
    Contains the message that the application intends to send to the EFT Transaction Host.

Remarks

The PinPadBase class verifies that the application has opened, claimed, and enabled the device. It may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Disabled

The application has not called the BeginEftTransaction method prior to calling ComputeMac.

Busy

The PinEntryEnabled property is set to true. The PIN pad can’t perform a MAC calculation during PIN entry.

Otherwise, PinPadBase calls the ComputeMacImpl protected method.

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
ComputeMacImpl
PinPad.ComputeMac Method