POS Status Request
A code sample of POSStatusRequest can be seen below.
PosClientService _posClientService = new PosTcpClientService(ipAddress: "127.0.0.1", port: 5002);
//Optional: TransactionConfig can also be set via configuration files, see "Configuration files" documentation for more information.
_posClientService.TransactionConfig = new Credential
{
CustomerCode = "ABF",
Site = "PXP000000001",
Workstation = "001",
Merchant = "1234567890",
Username = "PXPUser",
Password = "Testing",
Culture = "en"
};
//Optional: PedConfig can also be set via configuration files, see "Configuration files" documentation for more information.
_posClientService.PedConfig = new PedEndpointAddress
{
EndpointAddressType = PedEndpointAddressType.Serial,
SerialEndpointAddress = new SerialEndpointAddress
{
ComPort = "com9"
}
};
var posStatusRequest = new PosStatusRequest();
var posStatusResponse = await _posClientService.ProcessAsync(posStatusRequest);
Console.WriteLine(posStatusResponse.ResponseMessage);
Console.WriteLine(posStatusResponse.FaultResponseCode);
The following table contains POSStatusRequest objects and their detailed definitions.
POSStatusResponse
Field Name | Type (C#) | Mandatory | Description |
---|---|---|---|
FaultResponseCode | int | Yes | This is the code indicating the reason when the response code is an "Error" |
ResponseMessage | string | Yes | This is the human readable message from either the acquirer or the ANYpay service that describes the Response Code |
TransactionReference | string | Yes | This is the merchant's own unique reference for the request |
Updated over 4 years ago