Stripe Setup Guide

Configure payment processing

Admin Guide
Stripe Payment Integration

This guide walks you through setting up Stripe to accept payments from clients through invoices in the client portal.

Prerequisites

  • A Stripe account (create at stripe.com)
  • Access to Base44 dashboard environment variables
  • Admin access to this application
Step 1: Get Your Stripe API Keys
  1. 1

    Log in to your Stripe Dashboard at dashboard.stripe.com

  2. 2

    Click "Developers" in the top navigation

  3. 3

    Go to "API keys" section

  4. 4

    Copy your Secret key (starts with sk_test_ or sk_live_)

    ⚠️ Keep this secret! Never share it publicly.

  5. 5

    Copy your Publishable key (starts with pk_test_ or pk_live_)

Step 2: Configure Environment Variables
  1. 1

    Go to Base44 Dashboard → Your App → Settings → Environment Variables

  2. 2

    Add the following secrets:

    Name:

    STRIPE_SECRET_KEY

    Value:

    (paste your secret key)

    Name:

    STRIPE_PUBLISHABLE_KEY

    Value:

    (paste your publishable key)

Step 3: Set Up Webhook (Optional but Recommended)

Webhooks automatically update invoice status when payments succeed.

  1. 1

    In Stripe Dashboard, go to Developers → Webhooks

  2. 2

    Click "Add endpoint"

  3. 3

    Get your webhook URL from Base44:

    Dashboard → Code → Functions → stripeWebhook

    https://your-app.base44.dev/functions/stripeWebhook
  4. 4

    Select event to listen for: payment_intent.succeeded

  5. 5

    Copy the webhook signing secret (starts with whsec_)

  6. 6

    Add to Base44 environment variables:

    Name:

    STRIPE_WEBHOOK_SECRET

You're All Set!

Once configured, clients can pay invoices directly through the Client Portal. Test with Stripe's test card:

Card: 4242 4242 4242 4242

Exp: Any future date

CVC: Any 3 digits

💡 Remember to switch to live keys when ready for production!