YooKassa payment link sent to Telegram: a ready template
The nana800 template creates a YooKassa payment link when you press a button or your website sends a request, and a bot sends it to Telegram right away: to you, a manager or a customer. You need the shopId and secret key of your YooKassa shop and a Telegram bot token, with no code and no server. The money goes to your YooKassa shop, and nana800 takes no percentage of payments.
Build it in the builder
Chain of blocks
- 1
Trigger
The button creates a link by hand: handy for billing a customer after a call or for testing the settings. It works while the scheme is on and costs nothing.
- 2
Trigger · Webhook (trigger)
The webhook creates a link on a request from a website, a CRM or another app. The amount, description and buyer email can come in the request and go into the YooKassa block. In the template it accepts GET requests on the path /.
- 3
Action · YooKassa payment link
The Yookassa.ru payment view block creates a payment in rubles in your shop and returns the payment page link (confirmation_url) and the payment ID. Fill in the shopId, secret key, amount, description and buyer email.
- 4
Action · Send Telegram message
The bot sends the link to Telegram. Enter the bot token, chat ID and message text, and put the payment link from the YooKassa block into the text.
What it is good for
- Billing a customer after a call or chat: press the button, get the link in Telegram and forward it to the customer
- A Pay button on your website: the site sends the order to the webhook, and the webhook response block returns the link to the site
- Paying for an order in a Telegram bot: replace the webhook with the bot message trigger and send the link straight to the customer
- A prepayment for a booking or a consultation
- A message to a manager about every new invoice with the amount and customer email
How to set it up
- 1
Get YooKassa keys and a bot token
In your YooKassa account, in the API integration section, copy the shopId and issue a secret key. Create a bot with /newbot in @BotFather and copy its token. The @getmyid_bot bot shows the ID of your chat.
- 2
Open the template
In the builder open Ready templates, pick Payment View and press Use. The button, webhook, YooKassa block and Telegram message are already connected.
- 3
Fill in the YooKassa block
In the Yookassa.ru payment view block paste the shopId and secret key, set the amount in rubles (the template has 5), the payment description and the buyer email: without an email no payment is created. Put the page the buyer returns to after paying into return url. The amount and email can come from the webhook request.
- 4
Write the Telegram message
Paste the token and chat ID into the Telegram message send block. The message text field is empty in the template, and the bot sends nothing without text: write, for example, "Payment link:" and put confirmation_url from the YooKassa block after it.
- 5
Turn the scheme on and test it
Turn the scheme on in its settings and press the button in the button block: the bot sends a link to the YooKassa payment page. To test without real money, use the shopId and key of a YooKassa test shop. While the scheme is on, it costs $0.0042 per hour.
- 6
Connect your website
Press the API button in the builder and copy the webhook address. In the template it expects a GET request, so order data can go into the address after the ? sign. If your website sends POST, change the method in the webhook block.
Services in this template
- Webhook
Receive website leads and service events with a webhook and answer requests with no server and no code. Free balance every month, no card needed.
- YooKassa
Create YooKassa payment links without code and send them to customers in Telegram, by email or to your website. Free balance every month, no card needed.
- Telegram
Build a Telegram bot without code: reply to messages, add buttons, send leads and alerts to a chat, group or channel. Free balance every month, no card needed.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder