Skip to content

A Telegram bot that uses Stripe Checkout for payments and manages user wallet balances via SQLite.

License

Notifications You must be signed in to change notification settings

Y4SIIIIN/Stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Stripe

A Telegram bot that uses Stripe Checkout for payments and manages user wallet balances via SQLite.

⚙️ Features

  • Stripe Checkout integration (card, iDEAL, Bancontact)
  • SQLite-based wallet system
  • Automatic balance updates after successful payments
  • Inline buttons and interactive Telegram UI
  • Admin commands:
  • Add/Subtract/Set balance
  • View user payments and balances

🚀 How it works

  1. User starts the bot and enters the amount to top-up.
  2. Bot calculates Stripe fees and generates a payment button.
  3. User pays via Stripe Checkout.
  4. HTTP server listens for Stripe success callback.
  5. User balance is updated in the local SQLite database.

🛠 Setup

  1. Clone this repo
  2. Replace STRIPE_API and BOT_TOKEN in the script
  3. Open port 81 or use ngrok to expose your HTTP server
  4. Run the bot

📦 Requirements

  • Python 3.8+
  • python-telegram-bot
  • stripe
  • sqlite3

Install with:

pip install python-telegram-bot stripe

About

A Telegram bot that uses Stripe Checkout for payments and manages user wallet balances via SQLite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages