> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Confirm SetupIntent

> Confirm a Stripe SetupIntent and collect reuse permission.

Use `stripe.confirmSetupIntent` after selecting the payment method to save.

```ts automations/stripe-confirm-setup-intent.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { stripe } from "automate.ax/stripe"

export default automation("Confirm SetupIntent", () => {
  onDashboardRun({ title: "Confirm SetupIntent" })
  stripe.confirmSetupIntent({
    setupIntentId: "seti_123",
    paymentMethod: "pm_123",
  })
})
```

## Inputs

`setupIntentId` is required. You can provide a payment method, return URL, mandate data, and payment-method options.

## Output

Returns the confirmed SetupIntent. Inspect `status` and `nextAction` before treating setup as complete.
