Skip to main content

Autopayments - TON Jetton [in Admin]

Guide for self-assist activation of auto payments in Jetton of TON network.

The function allows your bot to accept autopayments in the Jettons of TON network and credit their amounts to the balance of users in the bot.
● Address of payment system: https://ton.org/
● Identification: Payer's address (wallet).
● Available currencies: TON: Jetton (any Tokens of your choice - up to 10 pieces)
● Auto withdrawal: Not available.
📆 Paid monthly (the current cost see while paying).
📞 Setting up activation: 🔐Admin | 💸Autopayments

Jettons in the TON network have their own checker and are paid separately from the TON itself.

When we start talking about autopayments in this guide, we assume that you already have a basic knowledge of how to work with the constructor and we do not need to explain to you, for example, how buttons and messages are added to your bot's menu. If, nevertheless, you still need to be explained these basic things, then you way too early attempting to create the autopayment functionality.


❖ Autopayments


How to organize automatic payments for JETTON of the TON network in your bot.


Required Functions

The functionality of the «🧩Extensions» section:
if you do not use a variable balance for accruals, then you will need additional variables.
You
need additional variables to store user's wallets addresses.


Add. Variables
To connect, go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Variables

Guide to Variables.


Autopayments setup

1. Checker settings

Using the setup wizard, enter all the requested data.

1.1 The address of YOUR wallet in one of the networks

The address of your wallet in one of the networks (TRON, TON, BSC) to which you planing to receive payments. The bot will check the incoming transactions of this wallet.

After entering the above data, you will see buttons that were not previously in the menu.

2. Pay the checker

Make payment for the amount shown.

Payment for at least a month. Exchange the required amount in TMH on your @MenuBuilderBot account, based on the number of months of activation.
☞ 🔐Admin | 🧩Extensions | 🏦Your Wallets

3. Activate the checker

Turn on the checker to continue the setup.

4. User Addresses

You must specify a variable to store the wallet address of the user for the network you have chosen (TRON, TON, BSC) to identify his payments.

GUIDE: If you do not understand what the variable is for, read again “Payment Identification Methods”.

5. Add Jetton

Allows you to add any TON Jetton (Token) of your choice.

IMPORTANT: You can add no more than 10 Jettons (Tokens).

5.1 Specify the Ticker (Symbol) of the Token.

Further settings are made in the same way as it is described for the «Balance XXXX» of the TRON manual.

After entering the above data, you will see the «Balance XXXX» button itself (see below) with the settings of this Token. Subsequent possible settings for this Token will be held in it.

6. Balance in XXXX

The button will appear in the section only after adding the corresponding Token in paragraph «5. Add Jetton».

These are the settings of the Token you have already added. The setup steps in it are the same as those described in the TRON manual.

7. Show Total

Enables and disables the display of the total amount on the wallet balance during autopayment.

For more information about showing the total amount, see the TRON manual.

Set up a report group for autopayments

During autopayments, reports with the data of a specific top-up will be sent to the group you specified.

For more information on setting up a report group, see the TRON manual.

❖ How to organize Autopayments in your bot's menu


How to organize autopayment for Jetton of the TON network.

If you have already enabled TON Jettons automatic payments in your bot, you need to create a way for people (your users) to automatically top-up. What is needed for this:

Settings are made in the same way as it is described in the TRON manual.

❖ Error messages


FAILED❗️ 🆘 No user comment

A similar error appears if the user was not identified.

And so, once again: the user can be identified ONLY by the wallet address. If the wallet address in the TRANSACTION (in the blockchain) does not match the wallet address stored by him in the VARIABLE - the bot will show an error and nothing will be added to the Balance.

Reasons why the user was not identified:
1. The user did not set the wallet address at all.
2. The user set the wallet address AFTER he made the transaction.
3. The user made a transaction from crypto-exchange or other type of custodial wallet.

The most common reason is that users send transfers from exchanges or custodial wallets, so wallet addresses do not match.

To make sure that the wallet addresses does not match, you must:
1. Find the transaction on the blockchain using the TXID (hash) of the transaction (you can get it directly in the error message).
2. See the wallet address from which this transaction was actually sent.
3. Using the «/varget var_name user_id» command, you should see what wallet address your user has actually saved in his variable.
4. If these addresses do not match, you explain to the user everything that we have just explained to you here.


❖ Additional Information


Withdrawals (semi-automatic)

If you have the functionality of automatic payment acceptance, you may need a button to make a Withdrawal of Funds.

For more information about working with the Withdraw Button, see the manual.