The ultimate Stripe-integrated subscription bot for Discord 💳
DuoXPy Stripe is a Discord bot that allows users to purchase subscriptions using Stripe checkout links. With an interactive purchase system and license key delivery, this bot automates your selling flow while keeping everything smooth, fast, and secure.
💡 Note: This tool is for educational and personal use only. Commercial resale is prohibited.
- Clone the repository:
git clone https://github.com/Chromeyc/DuoXPy-Stripe.git
cd DuoXPy- Install dependencies:
pip install -r requirements.txt- Set up your environment variables. Create a
.envfile and add the following:
DISCORD_TOKEN=your_discord_bot_token
STRIPE_API_KEY=your_stripe_api_key
STRIPE_ENDPOINT_SECRET=your_stripe_endpoint_secret- Configure your Stripe products and price IDs (see below).
- Run the bot:
python main.py- 🛒
/purchasecommand for subscription checkout - 🎟️ Auto-generated Stripe checkout links
- 🔐 Secure license key generation & delivery
- 📟 License data stored in JSON
- ⚙️ Stripe webhook integration for post-purchase flow
- 📊 Ready to expand with more products or Robux options
-
Go to your Stripe Dashboard
-
Navigate to Products > Add Product
-
Create entries for:
- 1 Month ($2)
- 3 Months ($5)
- 6 Months ($7)
- 12 Months ($15)
- Lifetime ($20)
-
Get the
price_idfor each product and add them to yourget_stripe_price_id()function.
Your licenses.json stores user licenses in the following format:
{
"customer_id_1": "license_key_ABC123",
"customer_id_2": "license_key_DEF456"
}You can replace this with MongoDB if needed for scalability.
- Im not gonna do anything for this anymore.
Built with:
- 🐍 Python 3.11
- 🤖 Discord.py
- 💸 Stripe API
- 📁 JSON for license management (Mongo optional)
Have questions or want to share feedback? Join our Discord:
This project is licensed under the DuoXPy License. Strictly no resale or commercial use.
Crafted with ❤️ by Chromeyc