Accept Payments
In this page you will learn how to accept payments through Dispay
Last updated
In this page you will learn how to accept payments through Dispay
Last updated
The transferfrom
command is used to request a transfer of funds from the users' wallets.
Your bot can user this command to accept payments by typing the following command into a common channel between it and the Dispay Bot
!dispay transferFrom @user1 0.005 ETH #notification-channel <Return Command>
Let's break down the above command:
!dispay
Prefix used to let the Dispay bot know that we are talking to it.
transferFrom
This is the name of the command we want to use.
@user1
This is the user we are requesting a transfer of funds from.
0.005
This is the amount of crypto we are trying to transfer from the user
ETH
This is the symbol of the crypto we are trying to transfer from the user (aka receive our payment in)
#notification-channel
This is the channel where we want to prompt the user to accept the transfer
<Return Command>
This is the command that Dispay will reply to your bot with to inform it if the payment is accepted.
Make the bot type the command in a secret channel between it and Dispay.
The bot will prompt the user to accept the transfer.
If the user accepts the transfer, Dispay will send the return command inputted by your bot.
Once Dispay replies to your bot with the return command, your bot can read it and perform with it the tasks you code for it.
The funds your bot requested will be instantly transferred to it and can be viewed and transferred using the bal
and send
commands respectively.