Payment Setup Guide

Complete these steps to start accepting Pro subscriptions

1

Enable Backend Functions

Go to Dashboard → Settings → Enable Backend Functions

💡 This allows your app to create Stripe checkout sessions and handle webhooks

2

Create Stripe Account

Sign up at stripe.com if you don't have an account

Free to set up
2.9% + 30p per successful charge
3

Add Stripe API Keys

Copy these from Stripe Dashboard → Developers → API Keys

STRIPE_SECRET_KEY (sk_test_... or sk_live_...)
STRIPE_PUBLISHABLE_KEY (pk_test_... or pk_live_...)
STRIPE_WEBHOOK_SECRET (whsec_...)

Add these in Dashboard → Settings → Secrets

4

Create Stripe Products

In Stripe Dashboard → Products, create:

Monthly Pro - £9.99/month

Recurring subscription

Yearly Pro - £95.99/year

Recurring subscription

⚠️ Copy the Price IDs and update them in functions/createCheckoutSession.js

5

Configure Webhook

In Stripe Dashboard → Developers → Webhooks:

Endpoint URL:

https://plainlyhr.base44.app/functions/stripeWebhook

Events to listen for:

checkout.session.completedcustomer.subscription.deleted
✓

Test & Launch

Use Stripe test mode first, then switch to live when ready

• Test card: 4242 4242 4242 4242

• Any future expiry date

• Any CVC

💡 Need help? The backend functions are already created for you. Just enable Backend Functions, add your Stripe keys, and you're ready to accept payments!

base44
Edit with Base44