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
The order is created in the bot
The items, amount, customer contacts and delivery address are saved.
The bot issues an invoice
A request to the payment provider returns a link that is valid for a limited time.
The customer pays on the bank's side
Card details are entered on the bank's secure page; the bot never sees them.
The provider reports the payment
Through a notification to the bot's server. Only then does the order get the "paid" status.
Fiscalization and receipt
If required, we send the data to the online cash register and send the customer a receipt in the chat.
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.