curl https://api.yookassa.ru/v3/payments \
-X POST \
-u <Идентификатор магазина>:<Секретный ключ> \
-H 'Idempotence-Key: <Ключ идемпотентности>' \
-H 'Content-Type: application/json' \
-d '{
"amount": {
"value": "600.00",
"currency": "RUB"
},
"confirmation": {
"type": "redirect",
"return_url": "https://www.example.com/return_url"
},
"receipt": {
"customer": {
"full_name": "Иванов Иван Иванович",
"phone": "79000000000"
},
"items": [
{
"description": "Наименование товара 1",
"quantity": "2.00",
"amount": {
"value": "250.00",
"currency": "RUB"
},
"vat_code": "2",
"payment_mode": "full_prepayment",
"payment_subject": "commodity"
},
{
"description": "Наименование товара 2",
"quantity": "1.00",
"amount": {
"value": "100.00",
"currency": "RUB"
},
"vat_code": "2",
"payment_mode": "full_prepayment",
"payment_subject": "commodity"
}
]
}
}'