> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/billing-and-invoicing/integrating-with-stripe.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
