Now you can accept cryptocurrency payments via the TON network in Telegram using our mini-app. It’s easy to integrate, allows seamless interaction with customers directly in Telegram, and opens new opportunities for businesses in the TON ecosystem.
The following parameters are available to manage payment creation:
Parameter
Required
Description
Public part of the API key (used to sign payment webhooks)
Return URL after successful payment
You can get the API key in your personal account under the "Integrations" section.
Two convenient methods are available to integrate our mini-app for receiving cryptocurrency payments.
You can integrate the payment system into your service or mini-app by adding a pre-built button script. This is a quick and easy way to set up the payment process via the TON network in widely used wallets.
Script Integration
To enable the payment button, add the script to your service:
Example of a payment button tag with required parameters:
Note! data- attributes must be written in lowercase.
The text displayed on the button.
Example: data-label="Pay"
data-accentcolor
Button color. Available values: purple, orange, green, red, yellow, blue
Alternatively, you can use a direct link that you can embed into your service or mini-app. This link redirects the user to our payment app within Telegram.
To open the payment mini-app, you need to generate a base64 string from the parameters and insert it into the startapp query parameter.
Example of Generating a Base64 String in JavaScript:
Example of a Link:
You can open the link using the window.open function:
Insert the result from the base64Params function into the URL string.
Supported currencies for payment: USDT (TON), TON (TON)
Note! When opening the payment mini-app, your mini-app will close.