Stripe
Setting up Stripe
-
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.
-
Save API keys - Open Stripe API Keys , then save the token starting with
pk_...toNEXT_PUBLIC_STRIPE_PUBLIC_KEYandsk_...toSTRIPE_PRIVATE_KEYin the.envfile. -
Activate OAuth for Standard Accounts - Go to Stripe Connect Settings and activate OAuth for Standard Accounts.
-
Add the redirect URL - Add the following redirect URL, replacing
<Cal.diy URL>with your application’s URL:
<Cal.diy URL>/api/integrations/stripepayment/callback-
Save the Stripe Client ID - Copy your client ID (
ca_...) toSTRIPE_CLIENT_IDin the.envfile. -
Set up a Stripe webhook - Open Stripe Webhooks and add:
<Cal.diy URL>/api/integrations/stripepayment/webhookas the webhook for connected applications.
-
Select webhook events - Select all
payment_intentandsetup_intentevents for the webhook. -
Save the webhook secret - Copy the webhook secret (
whsec_...) toSTRIPE_WEBHOOK_SECRETin the.envfile.