# Payment integrations

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

Connect the platform where you sell. Every sale comes into LeadStalker along with where the buyer came from, so you know which campaigns turned into sales.

Sales arrive by **webhook**: the platform notifies LeadStalker on every purchase, refund or cancellation.

## Connect a platform

In **Business settings → Integrations**, click **Add integration**.

1. **Pick the platform.** Can't find yours? Use the [custom webhook](/en/integracoes/personalizado).
2. **Name** the integration, like "Main store", and click **Generate URL**.
3. **Register the URL** on the platform, following the step by step on screen.
4. **Paste the credentials**, if the platform uses them.

The same business can have more than one integration of the same platform, each with its own URL — for example, two Hotmart accounts.

## Platforms

Step by step for each one:

- [Hotmart](/en/integracoes/hotmart)
- [Kiwify](/en/integracoes/kiwify)
- [Eduzz](/en/integracoes/eduzz)
- [Mercado Pago](/en/integracoes/mercado-pago)
- [Stripe](/en/integracoes/stripe)

Another platform? Use the [custom webhook](/en/integracoes/personalizado).

## Credentials

Some platforms sign every request with a token, and others need an API credential to fetch the sale details. LeadStalker uses the credentials to check that the request really came from the platform.

No credential is required to create the integration: many platforms only show the token **after** the URL is registered. Events that arrive before that are stored and read once the credential is saved.

Once saved, a credential shows up masked (`•••• ends in 4f2a`). Use **Change** to paste another one.

## Status

| Status | What it means |
|---|---|
| Receiving | An event arrived in the last 7 days. |
| Waiting | No event has arrived yet. |
| Token missing | Events arrived, but the credential to verify and read the sales is missing. |
| Stopped | The last event is more than 7 days old. |
| Paused | The integration is paused: incoming events aren't read. |

## Other actions

- **Rename** and **Pause** or **Activate**.
- **Generate new URL:** the current URL stops working right away. Then register the new one on the platform.
- **Remove:** the integration stops receiving sales and its URL stops working.

Viewing and changing integrations requires its own permission in the business.
