DumplingShopBot
DumplingShopBot copied to clipboard
Example of accepting payments in TON on NodeJS
@DumplingsTonBot code
A bot created for an example of accepting payments on TON, in the form of a dumpling shop🥟
Article with a full explanation of the bot's work: https://tonspace.co/develop/dapps/payment-processing/accept-payments-in-a-telegram-bot-js/
Installation and local launch
- Clone this repo:
git clone https://github.com/coalus/DumplingShopBot
- Go to the folder:
cd DumplingShopBot
- Create
.env
with the environment variables listed below - Run
npm install
- Run
npm run app
Environment variables
-
BOT_TOKEN
— Telegram bot token, which you can get from @BotFather -
TONCENTER_TOKEN
— Token for (testnet.)toncenter.com, which you can get from @tonapibot/@tontestnetapibot for the mainnet and testnet, respectively -
NETWORK
—mainnet
ortestnet
-
OWNER_WALLET
— Wallet for accepting payments
License
MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!