Accepting payments inside Telegram
How payment works in a bot or mini app, what the business needs to set up, and the pitfalls hiding in refunds and receipts.
In short
Payment happens in the chat: the user taps a button, enters card details in a secure form and returns to the bot. The money moves through a payment provider — the bot never sees or stores the details.
How it works
- The bot creates an invoice: what's being bought, for how much, described clearly.
- The user taps pay and lands in the provider's form.
- The provider processes the payment and reports the result to the bot.
- The bot confirms the order and triggers whatever comes next.
The key point: card data never passes through your server. That removes most payment-security obligations from the business.
What the business needs
- A registered company and a contract with a payment provider.
- Receipting configured, so the buyer gets one.
- Clear, publicly posted payment and refund terms.
- A bank account to receive payouts.
Provider onboarding usually takes from a few days to a couple of weeks — the slowest part, so plan it early.
What to get right in development
Idempotency. The user taps twice — there should still be one order.
Server-side validation. Never trust an amount sent by the client: the price comes from your database.
Status reconciliation. What happens when the payment succeeds but the confirmation never arrives — you need a way to reconcile.
Notifications. To both customer and manager, immediately after a successful payment.
When not to take payment in Telegram
If a deal needs an invoice, a contract and sign-off — B2B, typically — use the bot to capture the enquiry and settle payment the usual way. Automated payment suits standard purchases with a known price.
If buying takes more than one button — a catalogue, a cart, options to choose — payment fits better inside a Telegram Mini App.
Need payments in your bot?
We'll set up payments with receipts and refunds — and plan what happens when something fails.
Service
Telegram Mini Apps at Alba Creation — end to end, directly with the developers.
Starting at 120,000 ₽
Read next
Telegram shop bot for catalogue, stock and delivery
Learn how to connect a Telegram shop bot to your product catalogue and inventory, check stock before payment and pass paid orders to a delivery service.
4 min readHow to Choose a Chatbot Developer: Questions and Red Flags
Questions to ask a chatbot developer before signing, how to check rate limits, broadcasts and code ownership, and which red flags to watch for.
4 min readMobile App, PWA or Telegram Mini App: What to Choose
Compare a mobile app, a PWA and a Telegram Mini App on launch cost, platform capabilities and iOS limitations, based on current Telegram and PWA documentation.
4 min read