Cash
Specifics
- Payment method type in the API:
cash
- Confirmation scenario: Redirect
- Payment term: No limit
- Holding: 6 hours, only full payment capture is available
- Code in reports: GP
- Refund: no
- Recurring payments: no
- Limits: the minimum payment amount is 1 ruble, and the maximum amount is 60,000 rubles, but it could be lower (it depends on the payment terminal)
Integration scenarios
Ready-made solutions: Smart payment
Manual integration: Payment with a confirmation code
Payment with a confirmation code
Step 1. Create a payment with the
cash
type (and, if available, user’s phone number for sending the payment confirmation code) in the payment_method_data
object, and the redirect
type as well as the URL of a page on your side for redirecting the user after the payment (in the return_url
parameter) in the confirmation
object.Example of request
cURL
PHP
Python
curl https://api.yookassa.ru/v3/payments \ -X POST \ -u <Shop ID>:<Secret Key> \ -H 'Idempotence-Key: <Idempotence Key>' \ -H 'Content-Type: application/json' \ -d '{ "amount": { "value": "2.00", "currency": "RUB" }, "payment_method_data": { "type": "cash", "phone": "79000000000" }, "confirmation": { "type": "redirect", "return_url": "https://www.example.com/return_url" }, "description": "Order No. 72" }'
Step 2. Redirect the user to the payment code page (you will receive the URL in the
confirmation_url
parameter).Example of a created payment object
JSON
{ "id": "22c5d3e2-000f-5000-8000-10a783a9392b", "status": "pending", "paid": false, "amount": { "value": "2.00", "currency": "RUB" }, "confirmation": { "type": "redirect", "confirmation_url": "https://yoomoney.ru/api-pages/v2/payment-confirm/cash?orderId=22c5d3e2-000f-5000-8000-10a783a9392b" }, "created_at": "2018-06-27T16:49:38.669Z", "description": "Order No. 72", "metadata": {}, "payment_method": { "type": "cash", "id": "22c5d3e2-000f-5000-8000-10a783a9392b", "saved": false }, "recipient": { "account_id": "100500", "gateway_id": "100700" }, "refundable": false, "test": false }
Step 3. Wait for the payment to be successfully completed: you will receive a notification from YooMoney, or you can send periodic requests for payment information .
See also