Operating principle

The CUSTOM payment method is designed to work on the principle of receiving information from the client and then sending this information to its own handler.

General documentation for working with the CUSTOM payment method

Fields:

Fields:Handler link - the https address of your server to which information from the client will be sent

label - explanations for the client (used mainly for labeling the line in the web version)

Work process

1) The client selected the CUSTOM payment method
2) The bot displays a text message from the design (Field "Information")
3) The bot waits for a message from the client
4) The received message the bot sends to your handler (POST) in the format:
code - Information from the client
id - Full order number (see the formation principle in the API documentation for payments)
bot_id - unique bot identifier
currency - Selected currency in the bot for payment (Check this parameter, make sure you did not set the wrong one)

5) The response that our server will wait for
id(str) - unique transaction id in your system

sum(int) - Amount after verification (Actually received)
status(bool) - true/false

If id = -1, the bot server will wait 3 seconds and repeat the request (for implementing simple queues)
If status = true it will count the transaction, if false it will delete and cancel it.

The SUM parameter must return the transaction amount
If you return an amount less than the order amount, the BOT server will cancel the order, and if it was a balance top-up, it will count the smaller amount.

You can view all requests for tracking errors in the log

Create a bot:
free of charge and without programming knowledge BOT-T.COM