Versions Compared

Key

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

...

Expand
titleПример пакета результата в формате SOAP (фискальный чек уже сформирован):
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:PushPaymentResult>
<merchant_id>747514</merchant_id>
<ordernumber>220620181337400_ChequeItems</ordernumber>
<billnumber>5747514233327433.1</billnumber>
<testmode>0</testmode>
<ordercomment></ordercomment>
<orderamount>2272.96</orderamount>
<ordercurrency>RUB</ordercurrency>
<amount>2272.96</amount>
<currency>RUB</currency>
<rate>1</rate>
<firstname>Тест</firstname>
<lastname>Тестов</lastname>
<middlename>Тестович</middlename>
<email>null@assist.ru</email>
<clientip>10.20.10.85</clientip>
<ipaddress>10.20.10.99</ipaddress>
<meantype_id>2</meantype_id>
<meantypename>MasterCard</meantypename> 
<meansubtype>MasterCard BusinessCard Card</meansubtype>
<meannumber>545301****4468</meannumber>
<cardholder>TEST</cardholder>
<cardexpirationdate>12/20</cardexpirationdate>
<issuebank>Bank</issuebank>
<bankcountry> RUS </bankcountry>
<orderdate>22.06.2018 10:37:08</orderdate>
<orderstate>Approved</orderstate>
<responsecode>AS000</responsecode>
<message /> 
<customermessage>Завершено успешно.</customermessage> 
<recommendation>SUCCESSFUL AUTHORIZATION</recommendation> 
<approvalcode>X38229</approvalcode> 
<protocoltypename>NET</protocoltypename>
<processingname>Fake</processingname>
<operationtype>100</operationtype>
<operationdate>22.06.2018 10:37:08</operationdate>
<authresult /> 
<authrequired>0</authrequired>
<slipno>1930534468X38229</slipno>
<packetdate>22.06.2018 10:37:10</packetdate> 
<signature /> 
<checkvalue>45A33F800F2BD16C02E3D2F5C81557A0</checkvalue>
<payment_Id></payment_Id>
<fiscalreceipt_id>245949</fiscalreceipt_id>
<status>Success</status>
<fiscal_receipt_number>17</fiscal_receipt_number>
<hift_number>526</hift_number>
<receipt_datetime>{ts &apos;2018-06-22 13:39:00&apos;}</receipt_datetime>
<total>2272.96</total>
<fn_number>9999078900003221</fn_number>
<ecr_registration_number>1234567891032303</ecr_registration_number>
<fiscal_document_number>5053</fiscal_document_number>
<fiscal_document_attribute>2940732125</fiscal_document_attribute>
<errortext></errortext>
<taxationsystem>0</taxationsystem>
<chequeitems><items>
  <item id="1">
    <price>150.00</price>
    <quantity>2.37</quantity>
    <amount>355.50</amount>
    <tax>vat20</tax>
    <product>8702059</product>
    <name>творог</name>
    <fpmode>3</fpmode>
  </item>
  <item id="2">
    <price>128.00</price>
    <quantity>5</quantity>
    <amount>640.00</amount>
    <tax>vat20</tax>
    <product>8702058</product>
    <name>масло в пачках</name>
    <fpmode>4</fpmode>
  </item>
  <item id="3">
    <price>370.00</price>
    <quantity>2.658</quantity>
    <amount>983.46</amount>
    <tax>vat10</tax>
    <product>8702057</product>
    <name>мясо</name>
    <fpmode>5</fpmode>
  </item>
  <item id="4">
    <price>49.00</price>
    <quantity>6</quantity>
    <amount>294.00</amount>
    <tax>vat10</tax>
    <product>8702056</product>
    <name>молоко в бутылках</name>
    <fpmode>6</fpmode>
  </item>
  </items></chequeitems>
  <threedsdata>
      <version>1.0.0</version>
      <alphaauthresult>Y</alphaauthresult>
      <challenge>C</challenge>
      <eci>5</eci>
  </threedsdata>
</ws: PushPaymentResul></soapenv:Body></soapenv:Envelope>

...

Expand
titleПример пакета

...

результата в формате SOAP (для случая оплаты заказа средствами с карты и бонусными баллами – две успешных операции оплаты)
Code Block
languagexml
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC
<?xml version="1.0" encoding="utf-8" ?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
encoding
envelope/" xmlns:
xsi
ws="http://www.
w3
paysecure.
org
ru/
2001
ws/
XMLSchema-instance
"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
    
<SOAP-ENV
<soapenv:Body>
  
<m:PushPaymentResultResponse xmlns:m="http://www.assist.ru/wsdl"> <return xmlns:si="http://www.assist.ru/type/" xsi:type="si:SOAPStruct">
      <ws:PushPaymentResult>
    
<billnumber>5696145241469255.1</billnumber>
      
<packetdate>26.06.2019 08:44:00</packetdate>
  <order>
  
</return>
  
</m:PushPaymentResultResponse>
  
</SOAP-ENV:Body> </SOAP-ENV:Envelope>

В случае неудачи:

Code Block
languagexml
Expand
titleПример пакета результата в формате SOAP (для случая оплаты заказа средствами с карты и бонусными баллами – две успешных операции оплаты)
<?xml
 
version="1.0"
 
encoding="windows-1251"?>
    
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <merchant_id>744015</merchant_id> 
              <ordernumber>20120608-744015-001</ordernumber> 
         
<SOAP-ENV:Body
 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <billnumber>5744015100953130</billnumber> 
             
<SOAP-ENV:Fault>
 <testmode>1</testmode> 
              <ordercomment>Sber 744015</ordercomment> 
<faultcode>5</faultcode>

              
<faultstring>143</faultstring>
<orderamount>5000.00</orderamount> 
              <ordercurrency>RUB</ordercurrency> 
 
<detail
 
/>
            
</SOAP-ENV:Fault>
<firstname>TestS</firstname> 
        
</SOAP-ENV:Body>
      <lastname>TestovS</lastname> 
     
</SOAP-ENV:Envelope>

С описанием первого и второго кодов ошибок можно ознакомиться в  Таблице "Коды ошибок"

Если от предприятия нет ответа ни об успешной, ни о неуспешной обработке сообщения о результате платежа и при этом настройка ожидаемого ответа отлична от HTTP 200, система будет повторять отправку сообщения с результатами платежа с увеличивающимся интервалом в течение четырех часов, но не более 8 раз.

Warning

Внимание! При получении ответа, указывающего на ошибки обработки сообщения с результатами платежа, повторная отправка результатов не производится. Указанные в ответе коды firstcode, secondcode используются для диагностики возникших проблем.

Warning

Внимание! В полученном ответе необходимо проверить значение параметра testmode. Если платеж был выполнен в тестовом режиме (testmode=1), то отгружать товар или оказывать услугу по текущему заказу не требуется.

Multiexcerpt include
MultiExcerptNameslipno
PageWithExcerptБлоки документов

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>
         <middlename /> 
              <email>test@test.ru</email> 
              <orderdate>08.06.2012 07:09:01</orderdate> 
              <orderstate>Approved</orderstate> 
              <operation>
                <billnumber>5744015100953130.1</billnumber> 
                <operationtype>100</operationtype> 
                <operationstate>Success</operationstate> 
                <amount>3740.85</amount> 
                <currency>RUB</currency> 
                <clientip>10.10.10.10</clientip> 
                <ipaddress>0.0.0.0</ipaddress> 
                <meantype_id>1</meantype_id> 
              <ws:PushPaymentResult>
  <meantypename>VISA</meantypename> 
         <order>
       <meansubtype>Classic</meansubtype> 
      <merchant_id>744015</merchant_id> 
              <ordernumber>20120608-744015-001</ordernumber> 
<meannumber>411111****1111</meannumber> 
                <billnumber>5744015100953130<<cardholder>TEST</billnumber>cardholder> 
              <testmode>1</testmode>   <cardexpirationdate>12/20</cardexpirationdate>
              <ordercomment>Sber 744015</ordercomment> 
<issuebank>SAVINGS BANK OF THE RUSSIAN FEDERATION (SBERBANK)</issuebank> 
       <orderamount>5000.00</orderamount> 
        <bankcountry>Россия</bankcountry> 
     <ordercurrency>RUB</ordercurrency> 
          <responsecode>AS000</responsecode> 
   <firstname>TestS</firstname> 
            <message  <lastname>TestovS</lastname>> 
              <middlename />  <customermessage>Завершено успешно.</customermessage> 
              <email>test@test.ru</email>  <recommendation>SUCCESSFUL AUTHORIZATION</recommendation> 
              <orderdate>08.06.2012 07:09:01</orderdate>  <approvalcode>X25932</approvalcode> 
              <orderstate>Approved<  <protocoltypename>NET</orderstate>protocoltypename> 
                <operation><processingname>Fake</processingname> 
                <billnumber>5744015100953130.1</billnumber><operationdate>08.06.2012 07:09:44</operationdate> 
                <authresult <operationtype>100</operationtype>> 
                <operationstate>Success<<authrequired>0</operationstate>authrequired> 
                <amount>3740.85</amount> <slipno></slipno>
                <currency>RUB<<rrn>123456789</currency>rrn>
 
                <clientip>10.10.10.10</clientip> 
<threedsdata>
                   <ipaddress>0.0<version>1.0.0</ipaddress>version>
   
                <meantype_id>1</meantype_id> 
<alphaauthresult>Y</alphaauthresult>
                   <meantypename>VISA</meantypename> 
<challenge>C</challenge>
                   <meansubtype>Classic<<eci>5</meansubtype> eci>
                <meannumber>411111****1111</meannumber> </threedsdata>
                <cardholder>TEST</cardholder> </operation>
                <cardexpirationdate>12/20</cardexpirationdate><operation>
                <issuebank>SAVINGS BANK OF THE RUSSIAN FEDERATION (SBERBANK)</issuebank><billnumber>5744015100953130.2</billnumber> 
                <bankcountry>Россия<<operationtype>100</bankcountry>operationtype> 
                <responsecode>AS000<<operationstate>Success</responsecode>operationstate> 
                <message /><amount>1259.15</amount> 
                <customermessage>Завершено успешно.</customermessage><currency>RUB</currency> 
                <recommendation>SUCCESSFUL AUTHORIZATION</recommendation><clientip>10.10.10.10</clientip> 
                <approvalcode>X25932</approvalcode><ipaddress>0.0.0.0</ipaddress> 
                <protocoltypename>NET</protocoltypename><meantype_id>12</meantype_id> 
                <processingname>Fake<<meantypename>Points</processingname>meantypename> 
                <operationdate>08.06.2012 07:09:44</operationdate><meansubtype>Classic</meansubtype> 
                <authresult /><meannumber>411111****1111</meannumber> 
                <authrequired>0<<cardholder>TEST</authrequired>cardholder> 
                <slipno><<cardexpirationdate>12/20</slipno>cardexpirationdate>
                <rrn>123456789</rrn>
<issuebank>SAVINGS BANK OF THE RUSSIAN FEDERATION (SBERBANK)</issuebank> 
           <threedsdata>
     <bankcountry>Россия</bankcountry> 
             <version>1.0.0</version>   <responsecode>AS000</responsecode> 
                <message  /> <alphaauthresult>Y</alphaauthresult>
                <customermessage>Завершено   <challenge>C</challenge>успешно.</customermessage> 
                <recommendation>SUCCESSFUL   <eci>5</eci>AUTHORIZATION</recommendation> 
                </threedsdata><approvalcode>N/A</approvalcode> 
              </operation>  <protocoltypename /> 
              <operation>  <processingname>SberTest</processingname> 
                <billnumber>5744015100953130.2</billnumber><operationdate>08.06.2012 07:10:51</operationdate> 
                <operationtype>100<<authresult /operationtype>> 
                <operationstate>Success<<authrequired /operationstate>> 
                <amount>1259.15</amount> <slipno></slipno>
                <currency>RUB<<rrn></currency> rrn>
                <clientip>10.10.10.10</clientip> </operation>
           </order>
     <ipaddress>0.0.0.0</ipaddress> 
                <meantype_id>12</meantype_id><packetdate>08.06.2012 07:11:04</packetdate> 
               <signature <meantypename>Points</meantypename>> 
                <meansubtype>Classic</meansubtype><checkvalue>B739961F5CF27F9D90376B3B21517856</checkvalue> 
                <meannumber>411111****1111</meannumber> </ws:PushPaymentResult>
                <cardholder>TEST</cardholder> 
                <cardexpirationdate>12/20</cardexpirationdate>
                <issuebank>SAVINGS BANK OF THE RUSSIAN FEDERATION (SBERBANK)</issuebank> 
                <bankcountry>Россия</bankcountry> 
                <responsecode>AS000</responsecode> 
                <message /> 
                <customermessage>Завершено успешно.</customermessage> 
                <recommendation>SUCCESSFUL AUTHORIZATION</recommendation> 
                <approvalcode>N/A</approvalcode> 
                <protocoltypename /> 
  </soapenv:Body>
</soapenv:Envelope>



Если настройка ожидаемого ответа отлична от HTTP 200, то в ответ на сообщение о результатах платежа система ожидает от магазина xml пакет.

Пример пакета в случае успешного получения и расшифровки сообщения о результате платежа:

Code Block
languagexml
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SOAP-ENV:Body>
  <m:PushPaymentResultResponse xmlns:m="http://www.assist.ru/wsdl">
  <return xmlns:si="http://www.assist.ru/type/" xsi:type="si:SOAPStruct">
    <billnumber>5696145241469255.1</billnumber>
    <packetdate>26.06.2019 08:44:00</packetdate>
  </return>
  </m:PushPaymentResultResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

В случае неудачи:

Code Block
languagexml
<?xml version="1.0" encoding="windows-1251"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
     
<processingname>SberTest</processingname>
 
      
<operationdate>08.06.2012 07:10:51</operationdate>
<SOAP-ENV:Fault>
                
<authresult
<faultcode>5</
>
faultcode>
                
<authrequired
<faultstring>143</
>
faultstring>
 
               <detail 
<slipno><
/
slipno>
>
            
<rrn></rrn>
</SOAP-ENV:Fault>
        
</SOAP-ENV:Body>
    
</operation> </order> <packetdate>08.06.2012 07:11:04</packetdate> <signature /> <checkvalue>B739961F5CF27F9D90376B3B21517856</checkvalue> </ws:PushPaymentResult> </soapenv:Body> </soapenv:Envelope>
</SOAP-ENV:Envelope>

С описанием первого и второго кодов ошибок можно ознакомиться в  Таблице "Коды ошибок"

Если от предприятия нет ответа ни об успешной, ни о неуспешной обработке сообщения о результате платежа и при этом настройка ожидаемого ответа отлична от HTTP 200, система будет повторять отправку сообщения с результатами платежа с увеличивающимся интервалом в течение четырех часов, но не более 8 раз.

Warning

Внимание! При получении ответа, указывающего на ошибки обработки сообщения с результатами платежа, повторная отправка результатов не производится. Указанные в ответе коды firstcode, secondcode используются для диагностики возникших проблем.

Warning

Внимание! В полученном ответе необходимо проверить значение параметра testmode. Если платеж был выполнен в тестовом режиме (testmode=1), то отгружать товар или оказывать услугу по текущему заказу не требуется.


Multiexcerpt include
MultiExcerptNameslipno
PageWithExcerptБлоки документов

Наверх