Setting up Stripe
1
Create or log into a Stripe account
Go to Stripe and either create a new account or log into an existing one. For testing, activate the Test-Mode toggle in the top right of the Stripe dashboard.
2
Save API keys
Open Stripe API Keys, then save the token starting with
pk_...
to NEXT_PUBLIC_STRIPE_PUBLIC_KEY
and sk_...
to STRIPE_PRIVATE_KEY
in the .env
file.3
Activate OAuth for Standard Accounts
Go to Stripe Connect Settings and activate OAuth for Standard Accounts.
4
Add the redirect URL
Add the following redirect URL, replacing
<Cal.com URL>
with your application’s URL:5
Save the Stripe Client ID
Copy your client ID (
ca_...
) to STRIPE_CLIENT_ID
in the .env
file.6
Set up a Stripe webhook
7
Select webhook events
Select all
payment_intent
events for the webhook.8
Save the webhook secret
Copy the webhook secret (
whsec_...
) to STRIPE_WEBHOOK_SECRET
in the .env
file.