# Stripe

UI Bakery allows you to easily connect to Stripe with no need for additional layers like APIs and third-party services.

## Configuration

### Prerequisites

To connect Stripe to UI Bakery, you will need to obtain an API key. \
Stripe API uses API keys to authenticate requests. You can view and manage your API keys in the Stripe Dashboard under **Developers** > **API keys**.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FrBfnY5pjk3pWkfsvdzcE%2FCleanShot%202025-04-29%20at%2012.48.32.png?alt=media&#x26;token=e31fcf4e-658a-46a0-9ca3-af3bbd047a16" alt=""><figcaption></figcaption></figure>

You can use a test key first for testing purposes, but you will need a secret key to manage requests.

{% hint style="warning" %}
We recommend adding a separate secret key for UI Bakery usage. In this case, your UI Bakery-based application will not be affected by any changes to your secret key.
{% endhint %}

### Connecting the data source

1. On the **Data sources** page, click **Connect**, and select *Stripe* in the Data sources list.
2. Give your data source a name and specify the API Key you obtained previously.
3. Click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FH9GUVwrz9V4FHFZ6D36O%2FCleanShot%202025-04-29%20at%2013.02.49%402x-min.png?alt=media&#x26;token=e5361d92-6ba3-406c-874e-65b7dad21f57" alt=""><figcaption></figcaption></figure>

#### Authentication via cURL

If you don't want to add Stripe as a separate data source, you can use the *authentication cURL* request instead. You can find the example cURL in [Stripe documentation](https://docs.stripe.com/api/authentication?lang=curl).

## Usage

Once you have connected Stripe to UI Bakery, you can interact with your data. For this purpose, you can use the [Open API Request](https://docs.uibakery.io/reference/working-with-actions/open-api-request) action step:

1. Create a new action, select the Stripe data source and the Open API Request action.\
   All available Stripe endpoints will be already defined.
2. Select the required endpoint from the **Operation** dropdown.
3. Set any parameters and/or body if necessary.
4. Click **Execute action**.
