
Online payment in Russia: Yukassa, CloudPayments, T-Cashier, Robokassa, SBP, and receipts under 54-FZ
🌐 Machine-translated from Russian. Show original
Accepting payment on a website in Russia is two tasks: receiving money through a payment service and issuing a receipt under Federal Law 54-FZ. Let's analyze popular services, their APIs, SBP, and receipt requirements. General payment theory (stages, statuses, callback) — in the series "Online Payment: Banks of Kazakhstan" — it is also suitable for Russia.
⚖️ Rules are changing. The post is an overview of official sources as of November 2026, not a legal or tax consultation. Before making a decision, check the current versions: pravo.gov.ru, consultant.ru, nalog.gov.ru, digital.gov.ru.
In this part:
Payment acceptance options#
| Option | What is it | Who it suits |
|---|---|---|
| Payment aggregator (Yukassa, CloudPayments, Robokassa) | one contract — cards, SBP, wallets; often out-of-the-box receipts | online stores, SaaS, quick start |
| Internet acquiring bank (T-Cashier, etc.) | a contract with the bank, money to a settlement account in that bank | someone who already has a bank account |
| SBP directly through the bank | QR, link, button; Bank of Russia rates | reduce commission, payment via smartphone |
Services and their APIs#
Yukassa#
Documentation — yookassa.ru/developers. Payment is created only from your server:
curl https://api.yookassa.ru/v3/payments \
-X POST \
-u "$YK_SHOP_ID:$YK_SECRET_KEY" \
-H "Idempotence-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": { "value": "990.00", "currency": "RUB" },
"capture": true,
"confirmation": { "type": "redirect", "return_url": "https://example.ru/order/42" },
"description": "Заказ 42"
}'
The answer is the payment in status pending and confirmation_urlwhere the user needs to be sent. Success — status succeeded, cancellation — canceled. Status is tracked by incoming notifications (webhooks) or payment requests by id. Idempotence-Key protects against double payment when the request is repeated.
T-Cash (T-Bank)#
Documentation — developer.tbank.ru/eacq. Payment is initiated using the POST https://securepay.tinkoff.ru/v2/Init method with fields TerminalKey, Amount (in kopecks), OrderId , and Token.
Token — request signature:
- Take root level parameters (without nested
ReceiptandDATA). - Add pair
Password— terminal password. - Sort pairs by key alphabetically.
- Merge the values into a single line.
- Calculate SHA-256, put the result in
Token.
import crypto from "node:crypto";
export function tbankToken(params, password) {
const flat = Object.entries({ ...params, Password: password })
.filter(([k, v]) => k !== "Token" && v !== null && typeof v !== "object")
.sort(([a], [b]) => a.localeCompare(b));
return crypto.createHash("sha256").update(flat.map(([, v]) => String(v)).join("")).digest("hex");
}
TerminalKey and password are taken in the personal account of the online acquiring ('Stores' → 'Terminals'). The password is a secret and cannot be handed over to the frontend.
CloudPayments#
Documentation — developers.cloudpayments.ru. Two layers:
- Widget — payment form, script
cloudpayments.jswithwidget.cloudpayments.ru; - API —
api.cloudpayments.ru, HTTP Basic authorization: login — Public ID, password — API Secret. The headerX-Request-IDprovides idempotency (the result is stored for 1 hour).
Check, Pay, Fail, Confirm, Refund, Recurrent, Cancel notifications are sent to your URL. Check the Content-HMAC / X-Content-HMAC header — HMAC via API Secret. You need to respond with JSON with field code: {"code":0} — accepted. At Check, the code decides the payment fate: 0 — allow, 10 — invalid order number, 11 — invalid AccountId, 12 — invalid amount, 13 — payment cannot be accepted, 20 — overdue. If your server does not respond, the notification repeats up to 100 times with increasing intervals.
Robokassa#
Documentation — docs.robokassa.ru. The user is sent to https://auth.robokassa.ru/Merchant/Index.aspx with parameters MerchantLogin, OutSum, InvId, SignatureValue.
Signature: MerchantLogin:OutSum:InvId:Пароль#1, plus modifiers (Receipt and others) in strict order before the password and Shp_*parameters alphabetically after it. The default algorithm is MD5, which must match the store settings. IsTest=1 enables a test mode with test passwords. On ResultURL , the store checks the signature with Password No. 2 and responds OK + order number. RoboCastle itself does not change order statuses — your handler does.
SBP: QR, link, button#
Fast payment system — sbp.nspk.ru. Connection — through the participating bank: bank application, integration method selection, payment acceptance.
In the online store, payment via SBP is accepted via a button, link, QR code, or linked account. On the desktop, the QR is shown; on the smartphone — a button or link that opens the buyer's bank app.
Tariffs. The business rate depends on the MCC (retail outlet category) and is set by the Bank of Russia's rates: the NSPK page shows rates of 0.2%, 0.4%, and 0.7%; for 0.4% and 0.7%, the transfer fee is limited to 1500 rubles, for 0.2% — 10 rubles. Calculate the exact rate for your MCC in the calculator on the NSPK website. The bank can add its own tariff conditions.
The scheme for the developer is the same as with the map: create an order → receive a QR or a link from the bank, → show the user → wait for a status notification → if notified, ask for status.
Commission Comparison#
| Service | Maps | SBP | Where to watch |
|---|---|---|---|
| JuK Kassa | 2.8% + 1% per check — promo rate for new legal entities and individual entrepreneurs, valid until 01.12.2026; excluding VAT | individually | yookassa.ru/fees |
| T-Cash Register | at the rate on the website | at the rate on the | tbank.ru/kassa |
| CloudPayments | at the website rate | at the rate on the | cloudpayments.ru |
| Robokassa | by the tariff on the website | by the tariff on the | website robokassa.com |
| SBP via bank | — | 0.2–0.7% according to MCC, with a transfer limit | sbp.nspk.ru |
Rates depend on turnover, business category, payment method, and whose receipts you use. Compare offers based on your revenue and average receipt, including VAT and online cash register costs.
Checks under 54-FZ#
For online payments, the seller sends the buyer an electronic receipt to the phone number or email specified before payment; the paper receipt is not printed (clause 5, article 1.2 of Federal Law 54-FZ). The cash register forwards receipts to the Federal Tax Service through the fiscal data operator (OFD).
Variants:
| Option | How the | works
| --- | --- |
| Receipts from the payment service | the service itself generates the receipt based on the data from the request (receipt / Receipt) |
| Cloud cash register | the provider's cash register, you send a receipt via API after payment |
| Own online cash register | physical cash register and contract with OFD — rare for an online store |
What to check in the receipt for online payments (according to clarifications from the Federal Tax Service):
- tag 1125 "calculation indicator on the Internet" = 1;
- tag 1187 "place of settlement" — website address;
- tag 1008 — buyer's phone number or email;
- Payment method indicator: with 100% prepayment, when goods are transferred later, there are two receipts: upon payment and upon transfer of goods ("full settlement").
A receipt without mandatory details will not pass format-logical control — a correction check will have to be issued. Failure to send the receipt to the buyer is liable under Article 14.5 of the Administrative Offenses Code.
It is more convenient to generate the receipt items (name, quantity, price, VAT, subject, and method of payment) from the same order model as the invoice — then the amounts will not differ.
Architecture and rules#
- The order is created with you before payment; the amount is from the database, not from the browser.
- Status changes only upon notification with a verified signature or upon request for status from the server. Returning the user to
return_urlproves nothing. - Idempotence: repeated notification should not issue the product a second time.
- Secrets (secret key, terminal password, API Secret, Robocash passwords) — in environment variables, rotation during employee dismissals.
- Daily order reconciliation with the payment service registry.
- Do not store or accept card data on your server — use the payment page or widget.
CREATE TABLE payment (
id bigserial PRIMARY KEY,
order_id bigint NOT NULL,
provider text NOT NULL, -- 'yookassa' | 'tbank' | 'cloudpayments' | 'robokassa' | 'sbp'
external_id text, -- ID платежа у провайдера
amount_kop bigint NOT NULL, -- деньги в копейках, не float
status text NOT NULL DEFAULT 'pending',
receipt_sent boolean NOT NULL DEFAULT false,
updated_at timestamptz NOT NULL DEFAULT now(),
UNIQUE (provider, external_id)
);
Typical mistakes#
- The amount comes from the frontend and can be changed in DevTools.
- The notification signature is not verified — the attacker "pays" the order with a POST request.
- Money in
float:0.1 + 0.2gives discrepancies in kopecks. - The receipt was sent without the buyer's email or phone number.
- Prepayment without a second receipt upon delivery of goods.
- The test keys remained in production, or vice versa.
Launch checklist#
- Service selected, contract signed, rates compared to your turnover.
- Payment creation is only from the server, with idempotency.
- Notifications are checked by signature, processing is idempotent.
- Receipts configured: tags 1125, 1187, 1008, calculation method indicator.
- Returns generate a return receipt.
- SBP: QR on desktop, button, or link on mobile.
- Reconciliation with the payment register every day.
- Tested in test mode, keys divided by Wednesdays.
Next — IT accreditation and tax benefits in Russia 2026: Ministry of Digital Transformation conditions, profit tax, contributions, self-employed and individual entrepreneurs, quick API start
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.