SaasCore Docs
  • Get Started
  • Configuration
    • Database
    • Stripe
      • Product ID and Price ID
      • API keys
      • Stripe Webhook
    • Emails
      • Cron Jobs
    • Claudinary
    • Chat plugin
    • Upstash Redis
    • OAuth with Google and GitHub
    • Subscription types and plans
    • Affiliate program
    • Google Analytics Api
  • Landing page
    • Header
    • Hero
      • Discount
      • AvatarCircles
    • Other components
  • Authentication Flow
    • For Admins
    • For Clients
      • OAuth
      • Credentials
    • For Affiliates
  • Payments
    • Payment Flow Scenarios
      • Scenario 1: Registered Client
      • Scenario 2: Direct Subscription from Home Page
      • Upgrading/Downgrading/Canceling Subscriptions
    • Pricing Table
  • Component Protection
  • Pending ...
Powered by GitBook
On this page
  1. Configuration
  2. 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: 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: 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 .

PreviousProduct ID and Price IDNextStripe Webhook

Last updated 9 months ago