Skip to content

Instantly share code, notes, and snippets.

@c80609a
Created January 5, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c80609a/7adeba3e0cc4ed2a5791c2bfebb9cc0f to your computer and use it in GitHub Desktop.
Save c80609a/7adeba3e0cc4ed2a5791c2bfebb9cc0f to your computer and use it in GitHub Desktop.
$ curl 'https://money.yandex.ru/api/instance-id' -X POST -H 'Host: money.yandex.ru' -H 'Content-Type: application/x-www-form-urlencoded' --data 'client_id=A0BA3B0A3B822611B0D2A02CB308B5CFCE65034D20331F0F25C2F50E04B01DFC'
{"instance_id":"2bIgswj/yp7ktL5TbwJxlF9NOYGErs4v2CsDcWYSiuVwTX+AialUFgkPhysiGq6p","status":"success"}
$ curl 'https://money.yandex.ru/api/request-external-payment' -X POST -H 'Host: money.yandex.ru' -H 'Content-Type: application/x-www-form-urlencoded' --data 'instance_id=2bIgswj/yp7ktL5TbwJxlF9NOYGErs4v2CsDcWYSiuVwTX+AialUFgkPhysiGq6p&pattern_id=p2p&to=410011625585402&amount_due=100.00'
{"status":"refused","error":"illegal_param_instance_id"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment