OneMix Documentation
  • Start Here
  • Features
    • Analytics
    • Authentication
    • Database
    • Emails
    • Error Handling
    • Payments
    • SEO
  • Components
    • Header
    • Hero Section
    • Image Gallery
    • Marketing Section
    • Testimonials
    • Pricing
    • FAQs
    • Contact Form
  • Miscellaneous
    • Privacy Policy
    • Terms of Service
  • Deployment
Powered by GitBook
On this page
  • Handling Stripe Test Data
  • Stripe Production Guide
  1. Features

Payments

PreviousError HandlingNextSEO

Last updated 10 months ago

Handling Stripe Test Data

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:

Or, you can delete the entire test data (products, prices, logs, etc.) here:

Untitled

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.

Stripe Production Guide

  • Toggle off the Test Mode.

  • 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.

Copy the Secret key from and use it as the value of STRIPE_SECRET_KEY in your production environment variables.

Go to .

https://dashboard.stripe.com/apikeys
https://dashboard.stripe.com/webhooks
https://dashboard.stripe.com/test/products?active=true
https://dashboard.stripe.com/test/developers