Startup Starter Kits
  • Launch Manual
    • Clone the Repository and Install Dependencies
    • Generate NextJS Apps or Components Using ssk-plugin
    • Start Your Project in Development Mode
    • Configure Your Environment Variables
    • Run Your Project in Production Mode Locally
    • Launch Your Project
  • SSK-Core Features
    • UI Components
    • Root Layout
    • SEO
    • Icons
    • Feature Flags
    • Utilities
    • Templates
      • Privacy Policy Template
      • Terms of Service Template
  • SSK-Pro Features
    • AI Chat Integration
      • Setting Up AI Providers
      • Using the Pre-built Chat Component
      • Securing Chatbot Conversations
      • Testing and Customizing AI Responses
    • Google Analytics
      • Setting Up Google Analytics
      • Implementing Pageview Tracking
      • Handling Cookie Consent
      • Tracking Events
    • Payments Integration
      • Stripe Payments
        • Setting Up Your Stripe Account
        • Installing Stripe in Your Application
        • Implementing in Your Project
      • Lemon Squeezy
        • Setting Up Lemon Squeezy Account
        • Configuring the Webhook Endpoint
        • Testing and Verifying Integration
    • Affiliate Marketing
      • Lemon Squeezy
      • Rewardful
    • Form and reCAPTCHA
      • Setting Up reCAPTCHA
      • Integrating reCAPTCHA with Forms
      • Verifying reCAPTCHA on the Backend
      • Environment Variables for reCAPTCHA
      • Testing reCAPTCHA Integration
    • Email Integration with Nodemailer
      • Setting Up Email Server
      • Sending Contact Requests
    • Authentication
      • Auth with Google
      • Implement Auth0
  • SSK-Core GitHub Repo
  • SSK-Pro GitHub Repo
  • Contact Support
  • Three Tech Consulting
  • SSK-License
Powered by GitBook
On this page
  • Step 1 - Create a Stripe Account
  • Step 2 - Obtain API Keys
  • Step 3 - Set Up Webhook Secret
  1. SSK-Pro Features
  2. Payments Integration
  3. Stripe Payments

Setting Up Your Stripe Account

Chapter 1: Setting Up Your Stripe Account

PreviousStripe PaymentsNextInstalling Stripe in Your Application

Last updated 7 months ago

Step 1 - Create a Stripe Account

  1. Sign Up: Visit and sign up for an account if you don't already have one.

  2. Dashboard Access: After setting up your account, log in to access the Stripe Dashboard.

Step 2 - Obtain API Keys

  1. Navigate to API Keys: In the Stripe Dashboard, go to Developers > API keys.

  2. Copy Keys:

    • Publishable Key: Copy your Publishable Key.

    • Secret Key: Copy your Secret Key.

  3. Add to Environment Variables: In your project's .env file, add the following:

    STRIPE_SECRET_KEY=sk_test_your_secret_key
    STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

Replace your_secret_key, and your_webhook_secret with your actual keys.

Step 3 - Set Up Webhook Secret

  1. Navigate to Webhooks: In the Stripe Dashboard, go to Developers > Webhooks.

  2. Add Endpoint:

    • Click on Add endpoint.

    • Enter your webhook endpoint URL (e.g., https://yourdomain.com/api/webhook).

  3. Select Events:

    • Choose checkout.session.completed and any other events you want to handle.

  4. Retrieve Webhook Secret:

    • After creating the endpoint, click to reveal the Signing Secret.

    • Add this to your .env file as STRIPE_WEBHOOK_SECRET.

Stripe