Stripe Integration Setup
Complete guide to connect your Stripe account
❌ Stripe Not Connected
Request failed with status code 500
Step 1: Get Your Stripe Secret Key
- Go to Stripe Dashboard (link below)
- Make sure Test Modeis ON (toggle in top right)
- Click on "Developers" → "API Keys"
- Find the "Secret key" section
- Click "Reveal test key"
- Copy the key (starts with
sk_test_)
Step 2: Add Secret to Base44
- Go to Base44 Dashboard → Settings → Secrets
- Click "Add Secret"
- Secret Name:
STRIPE_SECRET_KEY - Secret Value: Paste your Stripe secret key (sk_test_...)
- Click "Save"
- Wait 5-10 minutes for backend to redeploy
Step 3: Test the Connection
After waiting 10 minutes, click the "Test Connection" button above. You should see a green success message.
Use these test card numbers when testing payments in Test Mode:
4242 4242 4242 4242
Success - Payment goes through
4000 0025 0000 3155
Requires Authentication (3D Secure)
4000 0000 0000 9995
Declined - Insufficient funds
• Use any future expiry date (e.g., 12/25)
• Use any 3-digit CVC (e.g., 123)
• Use any ZIP code (e.g., 90210)
❌ "Secret key not found"
→ Make sure you added the secret with the exact name: STRIPE_SECRET_KEY
❌ "Invalid key format"
→ Make sure your key starts with sk_test_ (not pk_, rk_, or whsec_)
❌ "Still getting errors after adding secret"
→ Wait 10 minutes after adding the secret for backend to redeploy
❌ "Stripe API call failed"
→ Your key might be revoked or invalid. Generate a new one in Stripe Dashboard
