Page History
The merchant can also find out the payment result (order status) by the order number using Web service. All possible order statuses are listed in the table " Order states ".
To receive the order status by order number, send a request to IPS Assist server via HTTP POST, SOAP method (in UTF-8 coding) or in JSON format (swagger description: https://docs.belassist.by/swagger/ ).
The request URL for receiving the order status:
https://<SERVER-NAME>/orderstate/orderstate.cfm.
The order search using Web service can be performed only for the specified time period. For this, you have to specify the time period, when the order payments started to be performed using the parameters startDay , startMonth , startYear setting forth the sampling starting date, and the parameters endDay , endMonth , endYear setting forth the sampling end date. If the parameters are not specified, or incorrectly specified, the default values will be applied. The default sampling end date is taken to be the current date, while the default sampling start date is the current date, minus three days.
List of request parameters:
...
An example of request result in SOAP format for the case of successful order payment at the second attempt:
| Code Block | ||
|---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?><soapenv<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.paysecure.ru/ws/"><soapenv:Body> <ws:orderstateResponse> <orderstate> <order> <ordernumber>13032014_121</ordernumber> <billnumber>5500069208497981</billnumber> <orderamount>121.00</orderamount> <ordercurrency>BYN</ordercurrency> <orderstate> Declined </orderstate> <packetdate>06.07.2016 13:34</packetdate> <signature></signature> <checkvalue>45A33F800F2BD16C02E3D2F5C81557A0</checkvalue> </order> <ordernumber>13032014_121</ordernumber> <billnumber>5500069208497999</billnumber> <orderamount>121.00</orderamount> <ordercurrency>BYN</ordercurrency> <orderstate>Approved</orderstate> <packetdate>06.07.2016 13:34</packetdate> <signature></signature> <checkvalue>671768C59429DE5A9C5BBD1E7F573666</checkvalue> </order> </orderstate> </ws:orderstateResponse> </soapenv:Body></soapenv:Envelope> |
...