Cat.AuthorizePreSales Method
Makes a pre-authorization.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim sequenceNumber As Integer
Dim amount As Decimal
Dim taxOthers As Decimal
Dim timeout As Integer
Dim cat1 As Cat
cat1.AuthorizePreSales(sequenceNumber, amount, taxOthers, timeout)
Syntax
'Declaration
Public MustOverride Sub AuthorizePreSales( _
ByVal sequenceNumber As Integer, _
ByVal amount As Decimal, _
ByVal taxOthers As Decimal, _
ByVal timeout As Integer _
)
public abstract void AuthorizePreSales(
int sequenceNumber,
decimal amount,
decimal taxOthers,
int timeout
);
public: abstract Void AuthorizePreSales(
Int32 sequenceNumber,
Decimal^ amount,
Decimal^ taxOthers,
Int32 timeout
);
public abstract void AuthorizePreSales(
int sequenceNumber,
System.Decimal amount,
System.Decimal taxOthers,
int timeout
);
public abstract function AuthorizePreSales(
sequenceNumber : int,
amount : Decimal,
taxOthers : Decimal,
timeout : int
) : Void;
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
Pre-authorization for amount and taxOthers is made as the approval specified by sequenceNumber.
When timeout is WaitForever, timeout never occurs and the device waits until it receives a response from the CAT.
AuthorizePreSales returns void if successful, and it can throw the following exceptions:
Value |
Meaning |
Illegal |
An invalid timeout parameter is specified, or CapAuthorizePreSales 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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
Cat Class
Cat Members
Microsoft.PointOfService Namespace
CapAuthorizeCompletion