Skip to main content

Autopayments - PayOk [in Admin]

Guide for self-assist activation of autopayments in PayOk.

PAYOK - allows your bot to accept auto payments and credit their amounts to the balance of users in the bot.
● Payment system address: https://payok.io
● Identification: Issued Invoice (link).
● Currencies: RUB.
Auto withdrawal: NOT Available.
📆 Paid monthly (the current cost see while paying).
📞 Setting up activation: 🔐Admin | 💸Autopayments

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 acceptance of PAYOK payments in your bot.


Required Functions

Functionality of the «🧩Extensions» section: you need macros to show Usercode.

User Macros
To connect, go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Macros

The functionality of the «🧩Extensions» section: if you do not use a variable balance for accruals, then you will need additional variables.

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.

To connect you will need:
1. New API key:
• Go to https://payok.io,
• Section «API»
• Click «Add Key» («Добавить ключ»)
• Check all Key permissions EXCEPT «Create payouts» («Создание выплат»).
• Save the API Key itself (Warning (!) it will only be shown once)
• Specify the IP address of our server in the «Allowed IP addresses» by clicking «Add IP address» (see the address in the message with the settings data when entering)
2. New Project (you can use an existing one)
• Section «My projects»
• Click «Add New Project»
• Obtain a Project ID by entering all the required data and fulfilling all conditions.

In the payment settings wizard, in your bot, specify:
1. API identifier (API ID) (set of 4 digits)
2. The API Key itself (API KEY)
3. Project ID
4. Secret key (of the project)

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. Balance in XXXX

It is necessary to set variables - where to accrue funds for each of the available currencies.

For more information on specifying variables for accrual, see the TRON manual.

IMPORTANT: PayID for each of the currencies will be generated after the variable setting is completed and shown in the information message when entering the autopayment settings of this system.

5. 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 PayOk Autopayments in your bot's menu


How to organize auto payment through PayOk.

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

All you need in the bot is to create a menu with «Invoice» buttons for the number of currencies or the amounts you have specified and preset and you want to accept. Follow the link to read the complete Guide to setting up the Invoice button. Below are the main points.

1. Create buttons in the bot to generate Invoices for each amount that you plan to accept for payment (if the user does not enter the amount himself). To do this, an appropriate number of slots for such buttons should already be added to your bot.

Usually the number of added "Invoice Buttons" corresponds to the number of currencies available in activated system at the time of adding. If you need more than that, just contact support using the special form for questions about Autopayments and ask them to add the missing amount to you.

2. In order to create buttons for generating invoices, create a regular button and go to its settings and click:
«Assign Invoice».
• Then follow the instructions of the Setup Wizard.

3. Create buttons for each of amounts you need, assigning each with the PayID issued to you.

There is only one currency in the PayOk system, so there is also one PayID.

The accrual variable is ALREADY associated with the corresponding PayID.

FOR REFERENCE: see how CryptoBot autopayment is organized in our system.
To do this, go to your bot:
🔐Admin | 🧩Extensions | 🏦Your Wallets | 💳Top-up

❖ 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.