Answer the question
In order to leave comments, you need to log in
How to make receiving and transmitting cUrl Android?
how to write a Kotlin request to Yandex API using curl ?
curl https://payment.yandex.net/api/v3/payments \
-X POST \
-u <Идентификатор магазина>:<Секретный ключ> \
-H 'Idempotence-Key: <Ключ идемпотентности>' \
-H 'Content-Type: application/json' \
-d '{
"amount": {
"value": "2.00",
"currency": "RUB"
},
"confirmation": {
"type": "redirect",
"return_url": "https://www.merchant-website.com/return_url"
},
"description": "Заказ №72"
}'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question