> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Stripe for app payments

Use the Stripe card in [project chat](https://converge-enter-documentation.mintlify.site/en/articles/manage-queued-requests-and-project-chats.md) to connect your account and review the products Enter proposes. Then ask Enter to build the purchase flow. Connecting is only the first part: your app also needs a checkout and a way to handle the result.

```mermaid theme={null}
flowchart TD
  A[Ask Enter for a payment flow] --> B[Connect Stripe card]
  B --> C[Paste secret key, click Connect]
  C --> D[Stripe Connected]
  D --> E[Create Stripe Products card]
  E --> F[Review, then confirm]
  F --> G[Test success and cancel paths]
```

> [!WARNING]
>
> **Connecting adds no buy button.** It only authorizes the integration. You still need to build and test the purchase button and payment confirmation.

## Before you start

A **product** is what you sell. A **price** sets how it is charged, including currency and any repeat interval. Decide if each purchase is one-time or recurring.

* [ ] I know what I'm selling and whether it is one-time or recurring.

* [ ] I can open my Stripe account and reach its secret key.

* [ ] I know if I'm using Stripe's test or live environment. I'll keep it the same for products and checkout.

Example: for a digital download, the customer picks the item, pays, and gets access once payment is confirmed. Ask Enter to build the successful and canceled-checkout paths, and say what to show if confirmation fails.

**1. Connect Stripe**

1. Ask Enter in your project chat to add the payment flow.
2. If the project isn't on [Enter Cloud](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md), Enter connects Cloud first.
3. When the **Connect Stripe** card appears, find your key. The **Where can I find my Stripe Secret Key?** box points to **Stripe Dashboard → Developers → API keys**.
4. Paste that account's secret key into the key field.
5. Click **Connect** and wait for **Stripe Connected**.

![Paste your secret key only in this field, then click Connect.](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/3.6/connect-stripe-card.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=e745b6d4367156c57bb97f7f0a100e50)

Paste your secret key only in this field, then click Connect.

> [!CAUTION]
>
> **Never share your secret key.** Enter it only in the key field, not in chat, frontend code, or screenshots.

**2. Review the products**

1. Tell Enter the product name, description, and payment type.
2. When **Create Stripe Products** appears, read each proposed product and payment setup before you confirm.
3. Check the result, then ask Enter to connect the purchase action to those products.

**3. Test checkout**

1. Cancel checkout. Confirm that no paid access appears.
2. Complete a payment using Stripe's testing setup. Confirm the intended access appears.
3. Check that access is granted only after payment is confirmed.

Check each result separately. Each proves something different:

| You see | It confirms |
| - | - |
| **Stripe Connected** | The connection works. |
| Product-creation result | The products were created. |
| Successful checkout and access | The app's purchase flow works. |

> [!WARNING]
>
> [**Publishing**](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md) **doesn't test payments.** It only makes a version available to visitors, so a published page can still have a broken checkout. Reaching the return page doesn't prove payment succeeded.

## Replace your Stripe secret key

1. When Enter shows **Update Stripe Secret Key**, check that the Stripe account and environment are correct.
2. Enter the new key in the card's key field.
3. Submit the update and read the result.
4. If the result mentions product migration, check the Stripe products and test checkout again.

> [!NOTE]
>
> A new key can point the integration at a different account or environment. Check the product or price your purchase action uses, then retest. If the update fails, check the current connection before you retry.

## Limitations

* Stripe needs Enter Cloud as its backend.
* A key update may move only specific products, not every product, customer, or past payment.

## Troubleshooting

> [accordion] Connect is unavailable
>
> Check the project's Cloud connection, finish its setup, then return to Stripe.

> [accordion] The key is rejected
>
> Check that it is the secret key for the account and environment you want.

> [accordion] The connection was canceled
>
> Open the connection flow again when you're ready.

> [accordion] Products exist but checkout fails
>
> Ask Enter to check the app's checkout request and the product or price it uses.

> [accordion] A customer returns without access
>
> Check the payment result and how the app confirms payment.

## Common questions

> [accordion] Does connecting Stripe create a checkout flow?
>
> No. The connection authorizes Stripe, but your app still needs a purchase action, checkout, and a way to confirm the result before granting access.

> [accordion] Can I mix Stripe test and live setup?
>
> Keep the account environment consistent across the secret key, products, prices, and checkout. Test the complete success and cancel paths with Stripe's testing setup before you use live payments.

> [accordion] What can change when I replace the Stripe secret key?
>
> A new key can point to a different Stripe account or environment, and an update may move only specific products rather than every product, customer, or past payment. Check the products and prices your purchase action uses, then test checkout again.

## Keep going

> [!NOTE]
>
> **Next:** [**Publish your site**](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)\
> Publish after testing checkout.

> [card] [Add and protect Cloud secrets](https://converge-enter-documentation.mintlify.site/en/articles/add-and-update-cloud-secrets.md)
>
> Store private values safely.

> [card] [Configure Google sign-in for your app](https://converge-enter-documentation.mintlify.site/en/articles/configure-google-sign-in-for-your-app.md)
>
> Let visitors sign in with Google.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.