Skip to Content
AppsStripe

Stripe

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.diy URL> with your application’s URL:

<Cal.diy URL>/api/integrations/stripepayment/callback
  1. Save the Stripe Client ID - Copy your client ID (ca_...) to STRIPE_CLIENT_ID in the .env file.

  2. Set up a Stripe webhook - Open Stripe Webhooks  and add:

<Cal.diy URL>/api/integrations/stripepayment/webhook

as the webhook for connected applications.

  1. Select webhook events - Select all payment_intent and setup_intent events for the webhook.

  2. Save the webhook secret - Copy the webhook secret (whsec_...) to STRIPE_WEBHOOK_SECRET in the .env file.

Last updated on