This guide walks you through setting up Stripe to accept payments from clients through invoices in the client portal.
Log in to your Stripe Dashboard at dashboard.stripe.com
Click "Developers" in the top navigation
Go to "API keys" section
Copy your Secret key (starts with sk_test_ or sk_live_)
⚠️ Keep this secret! Never share it publicly.
Copy your Publishable key (starts with pk_test_ or pk_live_)
Go to Base44 Dashboard → Your App → Settings → Environment Variables
Add the following secrets:
Name:
STRIPE_SECRET_KEY
Value:
(paste your secret key)
Name:
STRIPE_PUBLISHABLE_KEY
Value:
(paste your publishable key)
Webhooks automatically update invoice status when payments succeed.
In Stripe Dashboard, go to Developers → Webhooks
Click "Add endpoint"
Get your webhook URL from Base44:
Dashboard → Code → Functions → stripeWebhook
Select event to listen for: payment_intent.succeeded
Copy the webhook signing secret (starts with whsec_)
Add to Base44 environment variables:
Name:
STRIPE_WEBHOOK_SECRET
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!