Payments
Last updated
Last updated
When you run the npm run setup
command for the first time, Stripe gets seeded with some dummy products and pricing plans.
You can delete the products here: https://dashboard.stripe.com/test/products?active=true
Or, you can delete the entire test data (products, prices, logs, etc.) here: https://dashboard.stripe.com/test/developers
In case you want to edit the existing products or prices or pricing tiers or add new ones, you can add it directly in your Stripe Dashboard or make the required changes in prisma/schema.prisma
and scripts/config.ts
files and run the npm run setup
command again.
Toggle off the Test Mode.
Copy the Secret key
from https://dashboard.stripe.com/apikeys and use it as the value of STRIPE_SECRET_KEY
in your production environment variables.
Click on + Add endpoint
. Use https://www.{YOUR_DOMAIN}/api/webhook/
. Select checkout.session.completed
event and others if you have modified the api.webhook.ts
file. Copy the signing secret and add it to STRIPE_ENDPOINT_SECRET
in your production environment variables.