Боты и ИИ

How to accept payments in a Telegram bot: methods, flow and pitfalls

The most common setup in Kazakhstan: the bot creates an order, sends the customer a payment link in Kaspi or a bank, and receives a notification of a successful payment. Card data never enters the chat, and the bot confirms the order itself and notifies the manager.

Monolith Studio editorial team4 min read

How payment works

The bot does not accept money or store cards itself. It acts as an intermediary: it creates the order, issues an invoice with the payment provider and waits for confirmation. The money goes directly to your company's account, and the bot only records the result.

For the customer the path is short: they pick a product, tap "Pay," go to the bank's page, confirm the payment and return to the chat, where an "Order paid" message is already waiting. Everything else happens without the manager.

Payment methods

Kaspi payment link
A method customers are used to. The bot creates an invoice and receives a payment message. Suitable for stores, bookings with prepayment and services.
Bank acquiring
Card payment through the bank's payment page. Connected via an acquiring agreement and API.
Built-in Telegram payments
Work through a connected provider. For digital goods inside Telegram, platform rules may require Telegram Stars.
QR code or bank details
A fallback option: the customer pays and sends a receipt. It requires manual checking, so it only suits a small flow.

The flow from order to receipt

  1. The order is created in the bot

    The items, amount, customer contacts and delivery address are saved.

  2. The bot issues an invoice

    A request to the payment provider returns a link that is valid for a limited time.

  3. The customer pays on the bank's side

    Card details are entered on the bank's secure page; the bot never sees them.

  4. The provider reports the payment

    Through a notification to the bot's server. Only then does the order get the "paid" status.

  5. Fiscalization and receipt

    If required, we send the data to the online cash register and send the customer a receipt in the chat.

  6. Notifications

    The manager receives the order; the customer gets a confirmation and delivery status.

What to consider at launch

  • The agreement with the provider is signed by a legal entity or sole proprietor
  • An order gets the "paid" status only upon confirmation from the bank, not when a button is pressed
  • The payment is checked against the amount and order number so it can't be spoofed
  • Payment links have an expiration time
  • There is a scenario for refunds and order cancellation
  • Receipts are generated according to the requirements of your tax regime and online cash register
  • A test payment has been verified before launch

Don't accept payment "by screenshot"

Receipt screenshots are easy to fake. If you confirm orders manually from images, sooner or later you will hand over goods without being paid. Automatic confirmation from the bank is more reliable and saves time.

Refunds, prepayment and partial payment

For service bookings a prepayment is often taken to reduce no-shows. The bot can automatically refund it when the booking is canceled in advance and keep it for last-minute cancellations: the rules are set out in the offer and explained to the customer before payment.

For orders with delivery, think through what happens when an item is unavailable: the bot offers a replacement or processes a refund through the provider. All such steps should be logged so that accounting can reconcile the transactions.

Payment and data security

The main rule: bank card data must not reach your server or the bot's logs. Entry happens on the bank's or provider's page. Store access tokens for the payment system in protected environment variables, not in code, and limit the permissions of keys.

Verify the authenticity of payment notifications: the request signature, the amount and the order ID. Keep a payment log so accounting can reconcile the month's transactions. For disputes with customers, keep the order status history with the exact time of each step.

Shall we discuss your project?

Tell us in a few words what you need, and we'll suggest a solution and calculate the cost.

Discuss your project

FAQ

Do I need an online cash register?

The requirements depend on your type of business and tax regime. Check with your accountant and your bank; we set up the register integration according to your rules.

Is it safe to pay in a chat?

Card details are entered on the bank's page, not in the chat. Only the payment result is returned to the bot.

What are the fees?

The fee is set by the bank or provider under your agreement. We charge only for development and setup.

Didn't find your question? Message us and we'll reply within one business day.

Ask a question

More on payments

Need a bot with payments

We'll choose a payment method and connect it to your bank or Kaspi.

Call+7 708 758 18 60Message usWhatsApp
CityAktobe · we work across all of Kazakhstan

Get a quote

We'll reply within 15 minutes with an approximate price.