# showStripeCheckout

Triggers a Stripe checkout flow for an existing Stripe component on the page.

This action does not define the Stripe product, API key, or success handling by itself. Those values belong on the Stripe component schema.

## Action Object

| Key              | Type     | Description                                   |
| ---------------- | -------- | --------------------------------------------- |
| `action`         | `string` | Must be `"showStripeCheckout"`                |
| `options.formId` | `string` | Required Stripe component `formId` to trigger |

## Example

```json
{
  "action": "showStripeCheckout",
  "options": {
    "formId": "checkoutMain"
  }
}
```

## Behavior Notes

* BetterForms emits a Stripe checkout event using the supplied `formId`.
* The matching Stripe component receives that event and opens the checkout flow.
* Success handling is configured on the Stripe component schema with `onSuccess`, not on the action object.
* If no matching Stripe component is configured, the action has nothing to trigger.

## Related Pages

* [Stripe](/reference/components-overview/payment-gateways/stripe.md)


---

# 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://docs.klai.studio/reference/actions-processor/actions_overview/showstripecheckout.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.
