> 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.NewPayment

- Component: `appmixer.stripe.core.NewPayment`
- Kind: Trigger
- 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.NewPayment>

Triggers when a payment succeeds. Choose Payment Intent Succeeded (the PaymentIntent object, one event per payment) or Charge Succeeded (the Charge object). Stripe allows up to 16 webhook endpoints per account; each running flow with this trigger uses one. A restricted API key needs write access to Webhook Endpoints and read access to Events.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Event (`eventType`) | select | The Stripe event that starts the flow. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Event ID (`id`) | string | - |
| Event Type (`type`) | string | - |
| Created (Unix Timestamp) (`created`) | integer | - |
| Live Mode (`livemode`) | boolean | - |
| Payment (`data`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.stripe.core.NewPayment",
  "description": "Triggers when a payment succeeds. Choose Payment Intent Succeeded (the PaymentIntent object, one event per payment) or Charge Succeeded (the Charge object). Stripe allows up to 16 webhook endpoints per account; each running flow with this trigger uses one. A restricted API key needs write access to Webhook Endpoints and read access to Events.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "trigger": true,
  "webhook": true,
  "auth": {
    "service": "appmixer:stripe"
  },
  "quota": {
    "manager": "appmixer:stripe",
    "resources": "requests"
  },
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "eventType": {
          "type": "string",
          "enum": [
            "payment_intent.succeeded",
            "charge.succeeded"
          ]
        }
      }
    },
    "inspector": {
      "inputs": {
        "eventType": {
          "type": "select",
          "label": "Event",
          "index": 1,
          "defaultValue": "payment_intent.succeeded",
          "tooltip": "The Stripe event that starts the flow.",
          "options": [
            {
              "label": "Payment Intent Succeeded",
              "value": "payment_intent.succeeded"
            },
            {
              "label": "Charge Succeeded",
              "value": "charge.succeeded"
            }
          ]
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "required": [
          "id",
          "type",
          "created",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "title": "Event ID",
            "example": "evt_1NG8Du2eZvKYlo2CUI79vXWy"
          },
          "type": {
            "type": "string",
            "title": "Event Type",
            "example": "payment_intent.succeeded"
          },
          "created": {
            "type": "integer",
            "title": "Created (Unix Timestamp)",
            "example": 1686089970
          },
          "livemode": {
            "type": "boolean",
            "title": "Live Mode",
            "example": false
          },
          "data": {
            "type": "object",
            "title": "Payment",
            "required": [
              "id",
              "object",
              "amount",
              "currency",
              "status",
              "created"
            ],
            "properties": {
              "id": {
                "type": "string",
                "title": "Payment.ID",
                "example": "pi_3MtwBwLkdIwHu7ix28a3tqPa"
              },
              "object": {
                "type": "string",
                "title": "Payment.Object",
                "example": "payment_intent"
              },
              "amount": {
                "type": "integer",
                "title": "Payment.Amount",
                "example": 2000
              },
              "currency": {
                "type": "string",
                "title": "Payment.Currency",
                "example": "usd"
              },
              "status": {
                "type": "string",
                "title": "Payment.Status",
                "example": "succeeded"
              },
              "customer": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Payment.Customer ID",
                "example": "cus_NffrFeUfNV2Hib"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Payment.Description",
                "example": "Order 1001"
              },
              "payment_method": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Payment.Payment Method ID",
                "example": "pm_1MtwBwLkdIwHu7ixS9zIC6Tn"
              },
              "payment_intent": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Payment.Payment Intent ID (charges only)",
                "example": "pi_3MtwBwLkdIwHu7ix28a3tqPa"
              },
              "receipt_email": {
                "type": [
                  "string",
                  "null"
                ],
                "title": "Payment.Receipt Email",
                "example": "jenny.rosen@example.com"
              },
              "created": {
                "type": "integer",
                "title": "Payment.Created (Unix Timestamp)",
                "example": 1680800504
              },
              "livemode": {
                "type": "boolean",
                "title": "Payment.Live Mode",
                "example": false
              },
              "metadata": {
                "type": "object",
                "title": "Payment.Metadata",
                "example": {
                  "orderId": "1001"
                }
              }
            }
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
