Share via


Cat.AuthorizeSales Method

2/27/2008

Approves a purchase.

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

Syntax

'Declaration
Public MustOverride Sub AuthorizeSales ( _
    sequenceNumber As Integer, _
    amount As Decimal, _
    taxOthers As Decimal, _
    timeout As Integer _
)
public abstract void AuthorizeSales (
    int sequenceNumber,
    decimal amount,
    decimal taxOthers,
    int timeout
)
public:
virtual void AuthorizeSales (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
) abstract
public abstract void AuthorizeSales (
    int sequenceNumber, 
    Decimal amount, 
    Decimal taxOthers, 
    int timeout
)
public abstract function AuthorizeSales (
    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

Normal purchase 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 a response from the CAT.

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

Value

Meaning

Illegal

An invalid timeout parameter is specified.

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
CapAuthorizeSales