> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.stripe.core.ConfirmPaymentIntent

- Component: `appmixer.stripe.core.ConfirmPaymentIntent`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.stripe 3.1.0](https://connectors.appmixer.com/connector/appmixer.stripe/3.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.stripe/3.1.0/component/appmixer.stripe.core.ConfirmPaymentIntent>

Confirms an existing Payment Intent by its ID, initiating the payment process.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Payment Intent Id (`payment_intent_id`) | text | The identifier of the Payment Intent to confirm. |
| Payment Method Id (`payment_method`) | text | The identifier of the Payment Method to use for confirmation. |
| Return URL (`returnUrl`) | text | Return URL for redirect-based payment methods. Required when using payment methods that redirect the customer. |
| Capture Method (`captureMethod`) | select | Controls when the funds will be captured from the customer's account. 'automatic_async' (default) captures asynchronously with better latency. 'manual' requires calling capture separately. 'automatic' captures instantly. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Id (`id`) | string | - |
| Object (`object`) | string | - |
| Status (`status`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.stripe.core.ConfirmPaymentIntent",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Confirms an existing Payment Intent by its ID, initiating the payment process.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:stripe"
  },
  "quota": {
    "manager": "appmixer:stripe",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "payment_intent_id": {
            "type": "string"
          },
          "payment_method": {
            "type": "string"
          },
          "returnUrl": {
            "type": "string"
          },
          "captureMethod": {
            "type": "string",
            "enum": [
              "automatic",
              "manual",
              "automatic_async"
            ]
          }
        },
        "required": [
          "payment_intent_id"
        ]
      },
      "inspector": {
        "inputs": {
          "payment_intent_id": {
            "type": "text",
            "tooltip": "The identifier of the Payment Intent to confirm.",
            "label": "Payment Intent Id",
            "index": 0
          },
          "payment_method": {
            "type": "text",
            "tooltip": "The identifier of the Payment Method to use for confirmation.",
            "label": "Payment Method Id",
            "index": 1
          },
          "returnUrl": {
            "type": "text",
            "tooltip": "Return URL for redirect-based payment methods. Required when using payment methods that redirect the customer.",
            "label": "Return URL",
            "index": 2
          },
          "captureMethod": {
            "type": "select",
            "tooltip": "Controls when the funds will be captured from the customer's account. 'automatic_async' (default) captures asynchronously with better latency. 'manual' requires calling capture separately. 'automatic' captures instantly.",
            "label": "Capture Method",
            "index": 3,
            "defaultValue": "automatic_async",
            "options": [
              {
                "label": "Automatic",
                "value": "automatic"
              },
              {
                "label": "Manual",
                "value": "manual"
              },
              {
                "label": "Automatic Async",
                "value": "automatic_async"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "pi_3XYZ789ABC123DEF"
          }
        },
        {
          "label": "Object",
          "value": "object",
          "schema": {
            "type": "string",
            "example": "payment_intent"
          }
        },
        {
          "label": "Status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "succeeded"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
