How does the payment flow work?
Your bot or Mini App creates an invoice for a defined price. The user confirms in Telegram, and Telegram tells your server the payment succeeded. Your server then checks the payment, records the order and delivers the item. We build each step so a repeated or delayed message cannot deliver an item twice.
- Create the invoice from your server
- Answer the pre-checkout query
- Verify the successful payment event
- Deliver, log and confirm to the user
