PSIcomm API provides an HTTP GET protocol. This protocol uses HTTP GET requests to a specific URL and passing URL parameters as arguments to the API. The function returns data as XML for processing by your application.
https://Server Address:Port/Web/Get?RequestXml=xml string(URL encoded)
Sample test server GET call:
PSIcomm API provides an HTTP POST protocol. This protocol uses HTTP POST requests to a specific URL and passing xml data as arguments to the API. The function returns data as XML for processing by your application.
https://Server Address:Port/Web/Post
Sample test server POST call:
curl --location 'https://www.paymentsource.co:444/Web/Post' \
--header 'Content-Type: application/xml' \
--data '<RequestXml>
<Type>GetBalanceSt</Type>
<TerminalId>{{tid}}</TerminalId>
<Password>{{pwd}}</Password>
</RequestXml>'
Alternatively, PSIcomm API provides SOAP 1.1 Web Services. These Web Services are implemented following the SOAP document style convention. This is the default style for clients based on .NET framework.
The definition of the SOAP function is:
Public Function Process(RequestXml As String) As String
WSDL can be viewed by Internet browser directly on the test server at https://www.paymentsource.co:444/EcSoap
Example SOAP call on console:
curl --location --request POST 'https://www.paymentsource.co:444/EcSoap' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: http://tempuri.org/IEcSoap/Process' \
--data-raw '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:Process>
<tem:RequestXml>
<![CDATA[
<RequestXml>
<Type>PinRequest</Type>
<TerminalId>{{tid}}</TerminalId>
<Password>{{pwd}}</Password>
<Language>eng</Language>
<ReceiptNo>20007</ReceiptNo>
<ValueCode>15</ValueCode>
<ClerkId>1</ClerkId>
<RefNo>3930382732</RefNo>
<ProdCode>BELLMO</ProdCode>
</RequestXml>
]]>
</tem:RequestXml>
</tem:Process>
</soapenv:Body>
</soapenv:Envelope>'
Retrieve one pin in a real time delivery scenario.
POSA activation, real time reload supported of external service providers such as long distance card operators or mobile phone carriers.
2nd step in Pinless process to confirm the activation or reload.
The function provides automated PIN return and refund.
The GetBalanceSt function type retrieves the current eCash Balance for the merchant associated with the specified Terminal ID.
This function type is not necessary if your billing is not prepaid eCash. It can also be used as a 'heartbeat' message to test host system availability.
Download product file containing product list and voucher layouts
The Query function is used to retrieve the status of a transaction request.