Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The enterprise 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 payment result status by order number, send a request to IPS Assist server via HTTP POST or , SOAP method (in UTF-8 coding) or in JSON format (swagger description:  https://docs.assist.ru/swagger/).

The request URL for receiving the order status:

...

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.

...

An example of HTTP POST request for receiving a status of order 1001-01 whose payment started on April 1July 6, 2011 2016 (GMT):

Code Block
languagexml
<FORM ACTION="https://<SERVER-NAME>/orderstate/orderstate.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Ordernumber" VALUE="1001-01">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE="Your Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="Login" VALUE="Your login">
<INPUT TYPE="HIDDEN" NAME="Password" VALUE="Your password">
<INPUT TYPE="HIDDEN" NAME="Startyear" VALUE="20112016">
<INPUT TYPE="HIDDEN" NAME="Startmonth" VALUE="0407">
<INPUT TYPE="HIDDEN" NAME="Startday" VALUE="0106">
<INPUT TYPE="HIDDEN" NAME="Starthour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Startmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endyear" VALUE="20112016">
<INPUT TYPE="HIDDEN" NAME="Endmonth" VALUE="0407">
<INPUT TYPE="HIDDEN" NAME="Endday" VALUE="0207">
<INPUT TYPE="HIDDEN" NAME="Endhour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Format" VALUE="3">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit">
</FORM>

...

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?><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>RUB</ordercurrency>
        <orderstate> Declined </orderstate>
        <packetdate>13.03.2014 13:34</packetdate>
        <signature></signature>
        <checkvalue>45A33F800F2BD16C02E3D2F5C81557A0</checkvalue>
      </order>
        <ordernumber>13032014_121</ordernumber>
        <billnumber>5500069208497999</billnumber>
        <orderamount>121.00</orderamount>
        <ordercurrency>RUB</ordercurrency>
        <orderstate>Approved</orderstate>
        <packetdate>13.03.2014 13:34</packetdate>
        <signature></signature>
        <checkvalue>671768C59429DE5A9C5BBD1E7F573666</checkvalue>
      </order>
   </orderstate>
</ws:orderstateResponse>
</soapenv:Body></soapenv:Envelope>

...

Warning
titleAttention!

The following root certificates have to be installed on the requester side in the Trusted Root Certification Authorities Store for correct work with WEB-services via secure communication over TLS:

Before to start, check the presence of these certificates in the trust store and add tit if necessary.

...



Back on top