๐Ÿค– ModularBot Guide
โžก๏ธGetting Started
โš™๏ธBot Settings
๐Ÿ’ŽCrypto

๐Ÿ’Ž Crypto

ATTENTION!

Due to Telegram Policy the only payment method allowed is payment via Telegram Stars.

If you decide to use the Crypto payment method, we assume no responsibility if anything goes wrong.

To configure the payment with crypto you must first start the bot with which the transactions will be managed. Let's then launch the @CryptoTestnetBot test bot:

We press the โ€œCrypto Payโ€ button to begin the payment configuration:

And then we press on โ€œCreate Appโ€:

Finally we press on โ€œWebhooksโ€ and then on โ€œEnable Webhookโ€:

At this point we will be asked to send the server URL:

Then we send the Modular server URL https://cryptobot.modularbot.me/webhook

If the operation was successful you should find the URL in the bot's message.

Let's go back and verify that the โ€œWebhookโ€ option is ON:

We then press the โ€œAPI Tokenโ€ button:

The code in blue is your secret token for Crypto payments, keep it aside.

Never send your Crypto token to anyone else!

This token will be inserted in the appropriate space of the Modular-Shop management system.

So let's go to our bot in the shop section:

We press on โ€œManage shopโ€ which will redirect us to our shop management system:

Press the โ€œSettingsโ€ button at the top right to get to the payment methods configuration page.

We select โ€œCryptoโ€, insert the Test Crypto Token that we saved a few steps back and press โ€œConfirmโ€:

If the operation was successful, a check โ˜‘๏ธ will appear on the chosen payment method.

Let's now load some fictitious Cryptocurrencies into our Test wallet to try a payment with Crypto.

Let's first go back to the @CryptoTestnetBot home menu and press on
โ€Walletโ€ -> โ€œDepositโ€ -> โ€œTether - USDTโ€:

Finally we press on โ€œTRONโ€ -> โ€œGet USDTโ€:

At this point, 25 USDT will be loaded into our test wallet that can be used for test payments:

We can now try a payment! Letโ€™s open our shop by pressing on โ€œTry the shopโ€, add a product to the cart and confirm:

At this point we will be redirected to the Crypto test bot, where we are asked what to pay with; we select the Cryptocurrency added previously and press on โ€œPay Nowโ€:

Once paid, the Crypto bot will confirm the payment while our bot will send us the reward for the product just purchased!

We have just seen how to configure Crypto payment in Test mode, we now need to also configure Real mode to allow customers to purchase our products.

To do this, simply follow the same procedure just described, but configuring the bot for real Crypto payments: @CryptoBot.

Finally, once all the steps have been carried out also for @CryptoBot, it is recommended to rename your payment "App", i.e. the name that users will see at the time of purchase, as follows:

After pressing โ€œCrypto Payโ€ -> โ€œMy Appsโ€ -> โ€œEdit Nameโ€, send the name of your shop.