PED Status Request

A code sample of PEDStatusRequest 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 pedStatusRequest = new PedStatusRequest {
	TransactionReference = "PedStatus",
	Workstation = "001",
};

var pedStatusResponse = await _posClientService.ProcessAsync(pedStatusRequest);

Console.WriteLine(pedStatusResponse.ResponseMessage);
Console.WriteLine(pedStatusResponse.FaultResponseCode);
Console.WriteLine(pedStatusResponse.TransactionReference);

The following tables contain PEDStatusRequest objects and their detailed definitions. The field definitions are divided into request fields and response fields.

PEDStatusRequest

Field Name Type (C#) Mandatory Description
Workstation string Yes This is the workstation number, a unique workstation ID allocated to a workstation when the service is set up
TransactionReference string Yes This is the merchant's own unique reference for the transaction

 PEDStatusResponse

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