DirectoryEasy
  • Non-developers
    • Setting Up Your Development Environment
    • Setting Up GitHub
    • Vercel Deployment
    • Domain Setup
  • Developers
    • Get Started
    • Configuration
      • Main
      • Database
      • Sections and categories
      • Emails
        • Cron Jobs
      • Claudinary
      • Upstash Redis
      • OAuth with Google and GitHub
      • Google Analytics Api
      • Stripe
        • API keys
        • Stripe Webhook
      • AI
    • Landing page
      • Header
Powered by GitBook
On this page
  1. Developers
  2. Configuration
  3. Stripe

API keys

1. Navigate to the API Keys Section

  • In the dashboard, click on the Developers section in the sidebar.

  • Then click on API keys.

2. Find Your API Keys

  • Publishable Key (NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY): This key is used on the client-side to make requests to Stripe. Look for a key labeled as Publishable key; it starts with pk_. Copy this key.

  • Secret Key (STRIPE_SECRET_KEY): This key is used on the server-side to perform secure operations like creating charges. Look for a key labeled as Secret key; it starts with sk_. This key is sensitive, so handle it securely. Click "Reveal live key" if it's not visible and copy it.

3. Set Up Your Environment Variables

  • Store these keys securely in your project's .env file or use them directly in your Vercel environment variables.

PreviousStripeNextStripe Webhook

Last updated 5 months ago