--- title: "Stripe" --- ### Setting up Stripe 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. Open [Stripe API Keys](https://dashboard.stripe.com/apikeys), then save the token starting with `pk_...` to `NEXT_PUBLIC_STRIPE_PUBLIC_KEY` and `sk_...` to `STRIPE_PRIVATE_KEY` in the `.env` file. Go to [Stripe Connect Settings](https://dashboard.stripe.com/settings/connect) and activate OAuth for Standard Accounts. Add the following redirect URL, replacing `` with your application's URL: ``` /api/integrations/stripepayment/callback ``` Copy your client ID (`ca_...`) to `STRIPE_CLIENT_ID` in the `.env` file. Open [Stripe Webhooks](https://dashboard.stripe.com/webhooks) and add: ``` /api/integrations/stripepayment/webhook ``` as the webhook for connected applications. Select all `payment_intent` events for the webhook. Copy the webhook secret (`whsec_...`) to `STRIPE_WEBHOOK_SECRET` in the `.env` file.