Skip to content

WhatsApp Bot Store is a WhatsApp bot for managing products, orders, and payments with interactive buttons.

License

Notifications You must be signed in to change notification settings

atex-ovi/bot-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Bot Store

npm version Node.js version License MIT

My Profile GitHub Stars GitHub Forks Last Commit

Saweria Telegram Facebook WhatsApp


An interactive WhatsApp store bot template. Manage products, receive orders, and accept payments with interactive buttons.

Features

  • Interactive product menus with multiple options
  • Order handling & receipt upload
  • Multiple payment methods (OVO, DANA, GoPay, ShopeePay)
  • Automatic notifications to admin
  • Quick reply and CTA buttons
  • State management for users during the ordering process
  • Easily customizable product catalog



Demo Screenshots



Quick Start

  • Termux Android
pkg update && pkg upgrade
pkg install nodejs git
git clone git@github.com:atex-ovi/bot-store.git
cd bot-store
npm install
cp .env.example .env
nano .env  # edit ADMIN_JID and payment info
npm start
  • Windows / Linux
git clone git@github.com:atex-ovi/bot-store.git
cd bot-store
npm install
cp .env.example .env   # Windows: copy .env.example .env
nano .env               # edit ADMIN_JID and payment info
npm start

Tip

After npm start, follow the pairing code in the terminal to connect WhatsApp.

Directory Structure

bot-store/
├── README.md
├── .env.example
├── .gitignore
├── index.js
├── package.json
└── src
    ├── assets
    │   ├── e-wallet.jpg
    │   ├── tempe-original.jpg
    │   ├── tempe-balado.jpg
    │   └── tempe-pedas.jpg
    ├── data
    │   ├── orders.json
    │   └── userState.js
    ├── features
    │   ├── orderHandler.js
    │   ├── paymentMenu.js
    │   ├── sendToAdmin.js
    │   ├── storeMenu.js
    │   └── uploadReceipt.js
    ├── handler.js
    └── utils
        ├── orderResponse.js
        ├── typing.js
        └── utils_order.js

Environment Variables

Tip

Rename .env.example to .env to enable the Pay Now button, then update the file with your own information:

# Admin WhatsApp JID
ADMIN_JID=62xxxxxxxxxxx@s.whatsapp.net

# Payment account numbers
PAY_OVO=08xxxxxxxxxx
PAY_SHOPEEPAY=08xxxxxxxxxx
PAY_DANA=08xxxxxxxxxx
PAY_GOPAY=08xxxxxxxxxx

# Optional payment URLs (replace with your own links)
PAY_OVO_URL=https://ovo.id/payment/abcdef12345
PAY_SHOPEEPAY_URL=https://shopeepay.link/abcdef12345
PAY_DANA_URL=https://link.dana.id/minta/qr/123456abcdef
PAY_GOPAY_URL=https://gopay.link/u/abcdef12345

# Recipient / account holder name
PAY_RECIPIENT_NAME=Atex Ovi

Important

Do not commit .env to public repository.

Note

  • All product titles are placeholders; customize as needed.
  • Upload receipts images and include address to speed up order processing.
  • Admin will automatically receive notifications for new orders.
  • Supports multiple payment methods with CTA buttons.



Disclaimer

Caution

WhatsApp Bot Store is an experimental/template project for managing products, orders, and payments via WhatsApp with interactive buttons. This bot is unofficial and not affiliated with WhatsApp Inc. Use responsibly.
All usage is at your own risk; avoid spam or any activity that violates WhatsApp's terms of service.



Special Thanks



Support & Donations

If you find this project useful, consider supporting the development:

Buy Me A Coffee



License

This project is licensed under the MIT License.

About

WhatsApp Bot Store is a WhatsApp bot for managing products, orders, and payments with interactive buttons.

Topics

Resources

License

Stars

Watchers

Forks