Accept payments with ease using Stripe. This guide helps you configure both test and live modes.
<aside>
Stripe has two modes:
You can toggle between the two at the top right of your Stripe dashboard.
Go to your account β Switch to sandbox β Test mode

Stripe
π Make sure you're in Test mode while developing.
</aside>
**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

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.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!
β οΈΒ 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

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