Share via


Cat.AuthorizeCompletion Method

2/27/2008

Authorizes the purchase after approval.

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

Syntax

'Declaration
Public MustOverride Sub AuthorizeCompletion ( _
    sequenceNumber As Integer, _
    amount As Decimal, _
    taxOthers As Decimal, _
    timeout As Integer _
)
public abstract void AuthorizeCompletion (
    int sequenceNumber,
    decimal amount,
    decimal taxOthers,
    int timeout
)
public:
virtual void AuthorizeCompletion (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
) abstract
public abstract void AuthorizeCompletion (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
)
public abstract function AuthorizeCompletion (
    sequenceNumber : int, 
    amount : decimal, 
    taxOthers : decimal, 
    timeout : int
)

Parameters

  • sequenceNumber
    Sequence number for approval.
  • amount
    Purchase amount for approval.
  • taxOthers
    Tax and other amounts for approval.
  • timeout
    The maximum wait time (in milliseconds) until the response is received from the CAT device. WaitForever, 0, and positive values can be specified.

Remarks

Sales after approval for amount and taxOthers is intended as the approval specified by sequenceNumber.

When timeout is WaitForever, time-out never occurs and the device waits until it receives response from the CAT.

AuthorizeCompletion may cause a PosControlException to be thrown with the following ErrorCodes.

Value

Meaning

Illegal

An invalid timeout parameter is specified, or CapAuthorizeCompletion is false.

Timeout

No response was received from CAT during the specified timeout time in milliseconds.

Extended

The detail code is stored in ErrorCodeExtended.

Busy

The CAT device cannot accept any commands now.

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

Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapAuthorizeCompletion