Accept payments with ease using Stripe. This guide helps you configure both test and live modes.


<aside>

1. Test Mode vs. Live Mode

Stripe has two modes:

You can toggle between the two at the top right of your Stripe dashboard.

πŸ‘‰ Make sure you're in Test mode while developing.

</aside>


2. Test Mode Setup (for development)

 **2.1 Create a Stripe account**

 β†’ Go to [stripe.com](<https://stripe.com/>) and sign up for free.

2.2 Activate test mode

β†’ On your top right, you will see β€œTest mode” with a button, toggle it to be in Test mode

Screen Shot 2025-04-06 at 14.45.14.png

2.3 Get your test secret key

β†’ In the search bar, type Developers > API Keys

β†’ Copy the key that starts with sk_test_...

β†’ Paste it in your .env file:

STRIPE_SECRET_KEY=sk_test_abc123...

2.4 Create your test products


3. Live Mode Setup (for real payments)

  **3.1 Switch to live mode**

  β†’ Toggle OFF β€œViewing test data”

3.2 Create your products again

β†’ Use the same name & pricing as in test mode

3.3 Get your live secret key (sk_live_...)

β†’ Go to Developers > API Keys

β†’ Paste it in your .env:

STRIPE_SECRET_KEY=sk_live_xyz456...

3.4 You are now ready to receive real payments!


4. Tips and tools

⚠️ For Lucius buyers, when you create a product, don’t forget to add the price description so users can see the name of the plan they bought in their profile

Stripe - Create a price for a subscription β†’ Add a Price description

Stripe - Create a price for a subscription β†’ Add a Price description

Pytherin - User Profile β†’ Show the price description of the subscription

Pytherin - User Profile β†’ Show the price description of the subscription