# Integrating with Stripe

[Prerequisites](#prerequisites)

[Stripe Setup](#stripe-setup)\
&#x20;  [Create API Key](#add-a-new-admin)

## Prerequisites

To connect Stripe to Drivetrain, you need:

* An active Stripe account
* Admin privileges on Stripe
* Admin privileges in Drivetrain

### Stripe Setup <a href="#stripe-setup" id="stripe-setup"></a>

Drivetrain can connect to Stripe using API. To create an API key inside Stripe, please follow the steps:

### Create API Key <a href="#add-a-new-admin" id="add-a-new-admin"></a>

1. Log into the [Stripe dashboard](https://dashboard.stripe.com/apikeys)&#x20;
2. On the **Developers** page, select **API Keys**
3. Under the Standard Keys section, click on **+ Create secret key**

<figure><img src="/files/B5QpQp0ePxpR7y5YEYuf" alt=""><figcaption></figcaption></figure>

4. Enter the name of the Key as "**Drivetrain Integration Key**" and click **Create**
5. Make a note of the Standard API key and store it in a secure document. &#x20;

{% hint style="info" %}
That’s it! share the API key with your customer success manager so that they can get started!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/billing-and-invoicing/integrating-with-stripe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
