Home · Accepting payment · Accepting payments through YooKassa in a chatbot

Accepting payment

Accepting payments through YooKassa in a chatbot

Connect your YooKassa store: the bot sends an invoice in the chat, the customer pays on the cashier page, and the scenario continues once the payment is confirmed. The money goes straight to you.

The Payment block is available on all plansUse your own payment providerReceipts for scenarios

What connecting YooKassa gives you

A payment button in the chat

The Payment block sends the amount, description and a “Pay” button. The payment page opens on the YooKassa side; the card is not entered in the chat.

The scenario follows the result

On the “Paid” output you put a confirmation and the next step, on the “Error” output a fallback path with a manager contact.

Invoice log

The “Accept payments” section shows which provider processed an invoice, its status and whether the payment was a test.

Магазин с корзиной

Онлайн-оплату заказов магазина в боте можно подключить через ЮKassa — магазин доступен с Базового тарифа.

How to connect

  1. 1

    Open “Accept payments” and expand the YooKassa card

    In the project find the “Accept payments” section: in the full menu under sales, in the simple menu via “More”.

  2. 2

    Enter shopId and the secret key

    Take them from your YooKassa account: “Integration” → “API keys”. Press “Verify and save”: a wrong pair of credentials does not count as a connected cashier.

  3. 3

    Set the notification URL in YooKassa

    Copy the URL from the card and set it in YooKassa HTTP notifications for the events payment.succeeded, payment.canceled and refund.succeeded.

  4. 4

    Add the Payment block to the scenario

    Choose the cashier, set the amount in rubles and a description, and connect the “Paid” and “Error” outputs. Test the payment in test mode before launch.

Test and live key

A YooKassa test key starts with test_ and a live key with live_. Do not swap one shop's key for another's credentials. Take the notification URL from your own CHBT account: it is unique.

Receipts for payment in a scenario

The YooKassa card has a “Receipts for payment in scenarios” block: tax system, VAT and payment subject. Fiscalisation must be set up at YooKassa itself; a single switch in CHBT does not create a receipt. Before the Payment block, collect the customer's email or phone through “Data collection”.

What the integration does not do

The limits are clear before you launch.

  • Does not take the money for you: payment goes to your cashier, CHBT does not become the recipient.
  • Does not take card data in the chat: the customer pays on the payment provider's page.
  • Does not confirm payment by opening the payment page: the scenario continues after confirmation from the provider.
  • Does not replace fiscalisation: receipts must be set up at the payment provider.
  • Does not accept payments in KZT and UZS: for YooKassa and CloudPayments this integration uses rubles.

Available plans

The CHBT plan price is per bot per month. Fees and payment methods are set by your contract with the provider, not by CHBT.

Free0 ₽
The Payment block and your own cashier are on all plans, including Free (30 conversations a month)
Basic650 ₽/month
Дополнительно — магазин с корзиной и заказами (оплата заказов через ЮKassa или CloudPayments)
Business1,290 ₽/month
Everything in Basic; cashier limits are set by your contract with the payment provider

Compare Plans in full →

FAQ

Where do I get the YooKassa shopId and secret key?

In your YooKassa account: “Integration” → “API keys”. A test key starts with test_, a live key with live_.

How does the bot know the customer has paid?

YooKassa sends a notification to the URL from the connection card. The scenario continues only after this confirmation, not after the customer returns from the payment page.

Do I need a paid CHBT plan to send an invoice?

No. The Payment block is available on all plans. Terms of working with the cashier are set by your payment provider.

Who can connect and change the cashier?

The project owner and administrator can connect and change the cashier. An operator does not change payment credentials.

The first payment in a bot — in one evening

Create a bot, connect YooKassa and test a payment before launching for customers.

Create a bot and connect payments