Skip to content

Accept USDT Payments in Your Telegram Bot

Add USDT payments to your Telegram Bot in 5 minutes. Support TRON, BSC, ETH, and 5 more chains.

Why IronixPay?

  • No frontend needed — One API call generates a payment link, send it to the user
  • Auto-confirmation — Webhook pushes payment results in real-time, bot delivers automatically
  • 8 chains — Users can pay via TRON (lowest fees), BSC, ETH, and more — one integration covers all

Common Scenarios

Digital product sales, membership/subscription top-ups, paid group access, game item purchases — any scenario where your Telegram Bot needs to collect payments.

How It Works

User sends /pay command
Bot backend calls IronixPay API

Creates a Checkout Session

Returns session.url

Bot sends payment link

User clicks link, pays on checkout page
IronixPay detects on-chain transfer
Webhook pushes to your backend
Bot sends Payment successful

Delivers product

Quick Example

Minimal example using grammY:

typescript
import { Bot } from 'grammy'

const bot = new Bot(process.env.BOT_TOKEN!)

bot.command('pay', async (ctx) => {
  // Create an IronixPay checkout session
  const res = await fetch('https://api.ironixpay.com/v1/checkout/sessions', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.IRONIXPAY_SECRET_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      pricing_amount: '5',        // 5 USDT
      pricing_currency: 'USDT',
      currency: 'USDT',
      network: 'TRON',
      client_reference_id: `tg_${ctx.from?.id}`,
      success_url: 'https://t.me/your_bot',
      cancel_url: 'https://t.me/your_bot',
    }),
  })
  const session = await res.json()

  await ctx.reply(`💰 Click to pay:\n${session.url}`)
})

TIP

The client_reference_id field is returned as-is in the Webhook payload — use it to link Telegram users to orders.

FAQ

Does the bot need to handle on-chain logic?

No. On-chain monitoring, address allocation, and payment confirmation are all handled by IronixPay. You just receive Webhook notifications.

How do I test?

Use the Sandbox environment (sk_test_... key) with the TRON Nile testnet for free end-to-end testing. See the Testing Guide.

Get Started