Versions Compared

Key

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

...

Code Block
languagexml
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!DOCTYPE result [
<!ATTLIST result
                 firstcode CDATA #REQUIRED
                 secondcode CDATA #REQUIRED
                 count CDATA #REQUIRED>
<!ELEMENT result (order*)>
<!ELEMENT order (ordernumber?,billnumber?,testmode?,ordercomment?,orderamount?,ordercurrency?,firstname?,lastname?,middlename?,email?,orderdate?,orderstate?,packetdate?,signature?,checkvalue?,operation*)>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT testmode (#PCDATA)>
<!ELEMENT ordercomment (#PCDATA)>
<!ELEMENT orderamount (#PCDATA)>
<!ELEMENT ordercurrency (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT middlename (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT orderdate (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT packetdate (#PCDATA)>
<!ELEMENT signature (#PCDATA)>
<!ELEMENT checkvalue (#PCDATA)>
<!ELEMENT operation  (billnumber?,operationtype?,operationstate?,amount?,currency?,clientip?,ipaddress?,meantype_id?,meantypename?,meansubtype?,meannumber?,cardholder?,cardexpirationdate?,issuebank?,bankcountry?,responsecode?,message?,customermessage?,recommendation?,approvalcode?,protocoltypename?,processingname?,operationdate?,authresult?,authrequired?,slipno?)>
<!ELEMENT operationtype (#PCDATA)>
<!ELEMENT operationstate (#PCDATA)>
<!ELEMENT amount (#PCDATA)> 
<!ELEMENT currency (#PCDATA)>
<!ELEMENT clientip (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
<!ELEMENT meantype_id (#PCDATA)>
<!ELEMENT meantypename (#PCDATA)>
<!ELEMENT meansubtype (#PCDATA)>
<!ELEMENT meannumber (#PCDATA)>
<!ELEMENT cardholder (#PCDATA)>
<!ELEMENT cardexpirationdate (#PCDATA)>
<!ELEMENT issuebank (#PCDATA)>
<!ELEMENT bankcountry (#PCDATA)>
<!ELEMENT responsecode (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT customermessage (#PCDATA)>
<!ELEMENT recommendation (#PCDATA)>
<!ELEMENT approvalcode (#PCDATA)>
<!ELEMENT protocoltypename (#PCDATA)>
<!ELEMENT processingname (#PCDATA)>
<!ELEMENT operationdate (#PCDATA)>
<!ELEMENT authresult (#PCDATA)>
<!ELEMENT authrequired (#PCDATA)>
<!ELEMENT slipno (#PCDATA)>]>
<result firstcode='0' secondcode='0' count='1'> 
<order> 
  <ordernumber>0001-01</ordernumber>
  <billnumber>511111100000001</billnumber>
  <testmode>1</testmode> 
  <ordercomment>тестовый платеж</ordercomment> 
  <orderamount>100.00</orderamount>
  <ordercurrency>RUB</ordercurrency>
  <firstname>Test</firstname>
  <lastname>Testov</lastname>
  <middlename>Testovich</middlename>
  <email>test@testpost.ru</email>
  <orderdate>01.01.2018 11:23:13</orderdate> 
  <orderstate>Approved</orderstate>
  <packetdate>01.01.2011 12:05</packetdate> 
  <signature></signature>
  <checkvalue></checkvalue> 
  <operation> 
    <billnumber>511111100000001.1</billnumber> 
    <operationtype>100</operationtype> 
    <operationstate>Success</operationstate> 
    <amount>100.00</amount> 
    <currency>RUB</currency> 
    <clientip>111.23.11.23</clientip> 
    <ipaddress>0.0.0.0</ipaddress> 
    <meantype_id>1</meantype_id> 
    <meantypename>VISA</meantypename> 
    <meansubtype>Classic</meansubtype>
    <meannumber>411111****1111</meannumber> 
    <cardholder>TEST</cardholder> 
    <cardexpirationdate>12/20</cardexpirationdate>
    <issuebank>New Bank</issuebank> 
    <bankcountry>Russia</bankcountry>
    <responsecode>AS000</responsecode>
    <message></message> 
    <customermessage> </customermessage> 
    <recommendation></recommendation> 
    <approvalcode>F41412</approvalcode> 
    <protocoltypename>NET</protocoltypename> 
    <processingname>Name</processingname>
    <operationdate>01.01.2018 11:24:13</ operationdate>
    <authresult>Y</authresult>
    <authrequired>1</authrequired>
    <slipno>111111</slipno></operation> 
    <threedsdata>
      <version>1.0.0</version>
      <alphaauthresult>Y</alphaauthresult>
      <challenge>C</challenge>
      <eci>5</eci>
    </threedsdata>
  <operation> 
    <billnumber>511111100000001.2</billnumber> 
    <operationtype>200</operationtype> 
    <operationstate>Success</operationstate> 
    <amount>100.00</amount> 
    <currency>RUB</currency> 
    <clientip>111.23.11.23</clientip> 
    <ipaddress>0.0.0.0</ipaddress> 
    <meantype_id>1</meantype_id> 
    <meantypename>VISA</meantypename> 
    <meansubtype>Classic</meansubtype> 
    <meannumber>411111****1111</meannumber> 
    <cardholder>TEST</cardholder> 
    <cardexpirationdate>12/20</cardexpirationdate>
    <issuebank>New Bank</issuebank> 
    <bankcountry>Russia</bankcountry>
    <responsecode>AS000</responsecode>
    <message></message> 
    <customermessage> </customermessage> 
    <recommendation></recommendation> 
    <approvalcode></approvalcode> 
    <protocoltypename></protocoltypename> 
    <processingname>Name</processingname>
    <operationdate>01.02.2018 19:24:13</operationdate>
    <authresult></authresult>
    <authrequired></authrequired> 
    <slipno>111111</slipno>
  </operation></order></result>

...