-
Create Products and Pricing in Stripe
-
Go to the Stripe Dashboard.
-
Create a Product:
- Navigate to Product Catalog > Create Product.
- Enter product details (e.g., "Monthly Plan", "Yearly Plan").
-
-
Retrieve Your Product Price IDs
-
Set the Environment Variables Add the following to your
.env
file:STRIPE_SECRET_KEY=sk_test_4eC39HqLyjWDarjtT1zdp7dc WEBSITE_URL=http://0.0.0.0:3000 STRIPE_PRICE_ONE=price_1AbCDeFgHiJkLmNOpQrStUv STRIPE_PRICE_TWO=price_1XyZaBcDeFgHiJkLmNoQrStUv
-
Set the hard coded price values Set the following price values:
aibook/src/components/pricing.rs
Line 54 in 94e2e70
aibook/src/components/pricing.rs
Line 70 in 94e2e70
Your environment variables are set and ready for Stripe integration.