Skip to content

DuoXPy/DuoXPy-Stripe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The ultimate Stripe-integrated subscription bot for Discord 💳

GitHub stars


🌐 About DuoXPy Stripe

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.


⚙️ Setup Instructions

  1. Clone the repository:
git clone https://github.com/Chromeyc/DuoXPy-Stripe.git
cd DuoXPy
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your environment variables. Create a .env file and add the following:
DISCORD_TOKEN=your_discord_bot_token
STRIPE_API_KEY=your_stripe_api_key
STRIPE_ENDPOINT_SECRET=your_stripe_endpoint_secret
  1. Configure your Stripe products and price IDs (see below).
  2. Run the bot:
python main.py

🚀 Features

  • 🛒 /purchase command 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

💳 Stripe Integration

  1. Go to your Stripe Dashboard

  2. Navigate to Products > Add Product

  3. Create entries for:

    • 1 Month ($2)
    • 3 Months ($5)
    • 6 Months ($7)
    • 12 Months ($15)
    • Lifetime ($20)
  4. Get the price_id for each product and add them to your get_stripe_price_id() function.


📦 Example Licenses

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.


🔧 To-Do

  • Im not gonna do anything for this anymore.

🧪 Development

Built with:

  • 🐍 Python 3.11
  • 🤖 Discord.py
  • 💸 Stripe API
  • 📁 JSON for license management (Mongo optional)

💬 Community

Have questions or want to share feedback? Join our Discord:

Discord


📜 License

This project is licensed under the DuoXPy License. Strictly no resale or commercial use.


Crafted with ❤️ by Chromeyc

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages