# Stripe

This guide provides detailed instructions on how to integrate **Churned** with **Stripe** to enhance your ability to predict customer churn and segment your users based on their subscription status. By integrating Stripe, Churned can access customer billing data to make more accurate predictions and recommendations.

## How to connect Stripe to Churned.io

Login to Churned platform and go to integration part. Click on "New Integration" and add Stripe.

<figure><img src="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2FGgj0WYvR4jhmhrVbEfDM%2FScreenshot%202024-11-22%20at%2010.14.14.png?alt=media&#x26;token=f20f3c1f-7077-4a68-9dce-dd19c2e6ac87" alt=""><figcaption></figcaption></figure>

After adding Stripe, you will need to add the api key to continue:

<figure><img src="https://246234927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyCQUyE0u7ya9ULaprd%2Fuploads%2F6ylfhaF9UL1nwK10fwCX%2FScreenshot%202024-11-22%20at%2010.15.33.png?alt=media&#x26;token=23c70c8d-a190-4de7-a431-b4192a6af533" alt=""><figcaption></figcaption></figure>

Here’s how to obtain the API key from Stripe:

### Retrieving Stripe API key

1. **Login to Stripe**: Go to the [Stripe Dashboard](https://dashboard.stripe.com/login).
2. **Navigate to API Keys**:
   * In the left menu, select **Developers** and then **API keys**.
3. If you have not yet created an API key, follow these steps: <https://docs.stripe.com/keys#create-api-secret-key&#x20>;
4. If you already have an API key, follow these steps: <https://docs.stripe.com/keys#reveal-an-api-secret-key-live-mode>
5. Store the API key securely; you'll need it later for authentication.

#### Input the Credentials

After obtaining the API key, enter them into the integration setup form in Churned platform.

Click "Send" to complete the integration setup.
