> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-process-dev.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring the Stripe Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect Stripe to accept payments, send payouts, and manage payment-related tasks. See [Stripe Documentation](https://stripe.com/docs) for more information.

***

## Authorizations Supported

The XO Platform supports basic authentication for Stripe. See [App Authorization Overview](../../../dev-tools/bot-authorization/bot-authentication.md) for details.

| Authorization Type                       | Basic Auth |
| ---------------------------------------- | ---------- |
| Pre-authorize the Integration            | Yes        |
| Allow Users to Authorize the Integration | Yes        |

***

## Step 1: Enable the Stripe Action

**Prerequisites:**

* If you don't have Stripe credentials, create a developer account at [Stripe](https://stripe.com/docs).
* Copy the API Key of your Stripe account.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. Select **Stripe**.

### Pre-authorize the Integration

**Basic Auth**

1. Go to **App Settings** > **Integrations** > **Actions** and select **Stripe**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img2.png" alt="Auth type - Basic auth" />

4. Enter your **API Key**.

5. Click **Enable**. The **Integration Successful** pop-up is displayed.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img3.png" alt="Integration successful" />

<Note>The Stripe action moves from *Available* to *Configured* after enabling.</Note>

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **Stripe**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

4. Click **Select Authorization** > **Create New**.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img4.png" alt="Create new auth" />

5. Select **Basic Auth** as the authorization mechanism. See [App Authorization Overview](../../../dev-tools/bot-authorization/bot-authentication.md).

6. Enter the following credentials:

   * **Name** - Name for the Basic Auth profile.
   * **Base URL** - Base tenant URL for the Stripe instance.
   * **Authorization Check URL** - Authorization check URL for your Stripe instance.
   * **Description** - Description of the profile.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img5.png" alt="Auth credentials" />

7. Click **Save Auth**.

8. Select the new **Authorization Profile**.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img6.png" alt="Select auth profile to complete integration" />

9. Click **Enable**.

***

## Step 2: Install the Stripe Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img7.png" alt="Explore Templates" />

2. Click **Install** to begin installation.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img8.png" alt="Begin installation" />

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img9.png" alt="Dialog task for each template" />

4. Select the desired dialog task and click **Proceed**.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img10.png" alt="Select desired dialog task and proceed" />

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.

   <img src="https://mintlify.s3.us-west-1.amazonaws.com/koreai-ai-for-process-dev/ai-for-service/integrations/actions/images/stripe-action-img11.png" alt="Dialog task canvas" />


Built with [Mintlify](https://mintlify.com).