br0k3n656

Untitled

Oct 19th, 2021
778
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Параметры запроса REGISTER:
  2. {"signature":"ZTM5ODFjOWYwNmQ5NGRlZjYzYTMzYjc1ZTZjZjM1NTE=","amount":100,"currency":643,"reference":"9353fe2f-9ed0-4fae-81ef-dcf556c865f7","description":"test","sector":7964,"url":"https:\/\/api.mosgorpass.ru\/v8.2\/payment\/callback\/b2p\/success","fail_url":"https:\/\/api.mosgorpass.ru\/v8.2\/payment\/callback\/b2p\/failure","client_ref":"96f74d62-02ff-11eb-a411-0242afd3047f","email":"pavel.semenov111@gmail.com","fiscal_positions":"1;100;6;test"}
  3.  
  4. Ответ:
  5. <?xml version="1.0" encoding="UTF-8"?><order>
  6. <id>337856603</id>
  7. <state>REGISTERED</state>
  8. <inprogress>0</inprogress>
  9. <date>2021.10.19 12:46:11</date>
  10. <amount>100</amount>
  11. <currency>643</currency>
  12. <email>pavel.semenov111@gmail.com</email>
  13. <reference>9353fe2f-9ed0-4fae-81ef-dcf556c865f7</reference>
  14. <description>test</description>
  15. <url>https://api.mosgorpass.ru/v8.2/payment/callback/b2p/success</url>
  16. <parameters number="5">
  17. <parameter>
  18. <name>amount_actual</name>
  19. <value>100</value>
  20. </parameter>
  21. <parameter>
  22. <name>client_ref</name>
  23. <value>96f74d62-02ff-11eb-a411-0242afd3047f</value>
  24. </parameter>
  25. <parameter>
  26. <name>fail_url</name>
  27. <value>https://api.mosgorpass.ru/v8.2/payment/callback/b2p/failure</value>
  28. </parameter>
  29. <parameter>
  30. <name>paypage_open_count</name>
  31. <value>0</value>
  32. </parameter>
  33. <parameter>
  34. <name>payments_executed</name>
  35. <value>0</value>
  36. </parameter>
  37. </parameters>
  38. <signature>N2RiZThiOWI2NWY3ZTRlYTVhMzZiYmI3MmY1M2ZhODU=</signature>
  39. </order>
  40.  
  41. Параметры запроса AUTHORIZE_BY_TOKEN:
  42. {"signature":"OTJkZTc4ZmUxOWQzYmM3OGZmN2MyYWQ2ZTI4MGM5ZjU=","id":"337856603","token":"1ec5421e-ff18-4cfa-acfa-c3bb0c11d058","sector":7964}
  43.  
  44. Ответ:
  45. <?xml version="1.0" encoding="UTF-8"?><operation>
  46. <order_id>337856603</order_id>
  47. <order_state>REGISTERED</order_state>
  48. <reference>9353fe2f-9ed0-4fae-81ef-dcf556c865f7</reference>
  49. <id>470714712</id>
  50. <date>2021.10.19 12:46:12</date>
  51. <type>AUTHORIZE_BY_TOKEN</type>
  52. <state>REJECTED</state>
  53. <reason_code>4</reason_code>
  54. <message>Transaction declined by Issuer</message>
  55. <pan>426102******7732</pan>
  56. <email>pavel.semenov111@gmail.com</email>
  57. <amount>100</amount>
  58. <currency>643</currency>
  59. <signature>MGU2MTRiMjNhNmEwOGU5ZGFhNDcwZjZlYWJjYzRhY2E=</signature>
  60. </operation>
RAW Paste Data