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>500001</merchant_id>
<ordernumber>18062012_SDR</ordernumber>
<billnumber>550000110000001.1</billnumber>
<testmode>1</testmode>
<ordercomment>тестовый платеж</ordercomment> 
<orderamount>21.00</orderamount> 
<ordercurrency>RUB</ordercurrency>
<amount>21.00</amount> 
<currency>RUB</currency> 
<rate>1</rate> 
<firstname>Test</firstname> 
<lastname>Testov</lastname> 
<middlename>T.</middlename> 
<email>test@test.ru</email> 
<clientip>10.10.10.10</clientip> 
<ipaddress>0.0.0.0</ipaddress> 
<meantype_id>2</meantype_id> 
<meantypename>MasterCard</meantypename>
<meansubtype>Standart</meansubtype>
<meannumber>546792****4128</meannumber>
<cardholder>TEST</cardholder> 
<cardexpirationdate>12/20</cardexpirationdate>
<issuebank>Bank</issuebank> 
<bankcountry>RUS</bankcountry> 
<orderdate>18.06.2018 11:10:06</orderdate> 
<orderstate>Approved</orderstate> 
<responsecode>AS000</responsecode>
<message /> 
<customermessage>Завершено успешно.</customermessage>
<recommendation>SUCCESSFUL AUTHORIZATION</recommendation> 
<approvalcode>X40334</approvalcode>
<protocoltypename>NET</protocoltypename>
<processingname>Fake</processingname>
<operationtype>100</operationtype>
<operationdate>18.06.2018 11:10:07</operationdate> 
<authresult /> 
<authrequired>0</authrequired> 
<slipno>0363521111X31457</slipno>
<packetdate>18.06.2018 11:11:02</packetdate> 
<signature /> 
<checkvalue>45A33F800F2BD16C02E3D2F5C81557A0</checkvalue>
<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
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope 
xmlns:
SOAP-ENV
soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:
SOAP-ENC
ws="http://
schemas
www.
xmlsoap
paysecure.
org
ru/
soap/encoding
ws/"
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/">
            <SOAP-ENV:Fault>
                <faultcode>5</faultcode>
                <faultstring>143</faultstring>
                <detail />
            </SOAP-ENV:Fault>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

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

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

Warning

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

Warning

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

Пример пакета результата в формате SOAP (фискальный чек уже сформирован):

><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>



Если настройка ожидаемого ответа отлична от 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/">
            <SOAP-ENV:Fault>
                <faultcode>5</faultcode>
                <faultstring>143</faultstring>
                <detail />
            </SOAP-ENV:Fault>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

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

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

Warning

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

Warning

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

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>


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

...