# Stripe

::: warning Under construction
Payment integrations are still being built. This page describes how the Stripe one will work.
:::

## What you need

- Access to the Stripe dashboard with permission to create webhooks.
- The event destination's **signing secret** (starts with `whsec_`). Stripe creates it when you create the destination, which is why it comes after the URL.

## 1. Create the integration in LeadStalker

In **Business settings → Integrations**, click **Add integration**, pick **Stripe**, give it a name and click **Generate URL**. Copy the URL.

## 2. Create the event destination in Stripe

1. In the Stripe dashboard, open **Workbench** and the **Webhooks** tab.
2. Click **Create an event destination**.
3. Pick the checkout and charge events — for example `checkout.session.completed` and `charge.refunded`.
4. Choose **Webhook endpoint** and paste the LeadStalker integration URL. Save.

## 3. Copy the signing secret

1. Open the destination you created.
2. Under **Signing secret**, click **Reveal** and copy the `whsec_...` value.
3. Paste it into the integration's **Signing secret** field in LeadStalker. Click **Save credentials**.

## 4. Check it

Make a test payment or wait for the next one. When the first event arrives, the integration switches to **Receiving**.

## If something isn't working

| Status | What to do |
|---|---|
| Waiting | No event has arrived: check the destination URL and the events you picked. |
| Token missing | Events arrived, but the signing secret wasn't pasted. Paste it and save: stored events are read right after. |

The signing secret belongs to each destination. If you create another destination or roll the secret in Stripe, paste the new one in LeadStalker with **Change**.

::: tip Menus change
Stripe replaced the old **Developers** menu with **Workbench**. Its docs are at [Receive Stripe events in your webhook endpoint](https://docs.stripe.com/webhooks).
:::
