> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipkit.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments with Stripe

<img src="https://mintcdn.com/shipkit/HuQd_kWdB4hOr_Br/images/stripe.png?fit=max&auto=format&n=HuQd_kWdB4hOr_Br&q=85&s=06fab46d67da6350434fb545954ab273" alt="Stripe" width="2400" height="700" data-path="images/stripe.png" />

Sign up for a <a href="https://stripe.com" target="_blank">Stripe</a> account.

## Environment variables

Add your Stripe secret key and webhook secret to the `.env` file.

```ini theme={null}
# .env
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
```

## Local development

Get started by installing the <a href="https://docs.stripe.com/stripe-cli" target="_blank">Stripe CLI</a>.

Then forward the Stripe webhook events to your local server.

```
stripe listen --forward-to localhost:3000/pay/webhook
```
