The translation was generated automatically and may contain mistakes
How to Form a Request Signature
All requests to API payment system need to sign. To do this, you will need a private access key, which you were given when connection к VK Pay.
To obtain the signature of the request
- 1.
Take the URL request without schema and domain, with the leading symbol "/", but without the final "/". For example, in the case of a request
https://api.money.mail.ru/money/2-03/transaction/get/You need to take a line to sign./money/2-03/transaction/get. - 2.
Create a JSON fields
dataconsisting of a headerheaderand request bodiesbodyand encode the data into a BASE64 string.**Пример JSON поля
data**JSON{"body":{"transaction_id":"5B5FEF96-CCFF-11EB-B2C9-F3FB221CDBE2"},"header":{"ts":1721663752,"client_id":196669}}Base64 encoding EXAMPLE
eyJib2R5Ijp7InRyYW5zYWN0aW9uX2lkIjoiNUI1RkVGOTYtQ0NGRi0xMUVCLUIyQzktRjNGQjIyMUNEQkUyIn0sImhlYWRlciI6eyJ0cyI6MTcyMTY2Mzc1MiwiY2xpZW50X2lkIjoxOTY2Njl9fQ== - 3.
Consistently combine the string obtained from the URL in step 1, encoded in the BASE64-line field
dataStep 2 and the private access key.
The example uses the value of the access key:928e0c62564fdb4c862e422f8ca3c49e578c7cdf.Example of Concatenation
/money/2-03/transaction/geteyJib2R5Ijp7InRyYW5zYWN0aW9uX2lkIjoiNUI1RkVGOTYtQ0NGRi0xMUVCLUIyQzktRjNGQjIyMUNEQkUyIn0sImhlYWRlciI6eyJ0cyI6MTcyMTY2Mzc1MiwiY2xpZW50X2lkIjoxOTY2Njl9fQ==928e0c62564fdb4c862e422f8ca3c49e578c7cdf - 4.
From the string obtained after combining, calculate the cryptographic hash SHA1 in the HEX representation. Use the received value in the parameter
signatureпри sending a Request .1658b9a8c0e8c86d4e9785e44901a8d30ff59d37