---
title: "Create a Stripe Payment Intent"
method: POST
path: "/payments/stripe/create-payment-intent"
tags: ["Payments"]
---

# Create a Stripe Payment Intent

`POST /payments/stripe/create-payment-intent`

## Request

- Base URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api`
- URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/payments/stripe/create-payment-intent`
- Auth: HTTP bearer

Create a one-time Stripe Payment Intent for direct card payments with reCAPTCHA protection and pending transaction logging.

**For AI agents**: Use this when users want to process a manual payment or top up credits without launching the hosted checkout.

## Request body

- object
  - `amount` number, float, required: Charge amount in the selected currency.
  - `currency` string: Three-letter ISO currency code.
  - `appId` string, required: Application identifier tied to the purchase.
  - `description` string: Optional description that appears in Stripe and receipts.
  - `recaptchaToken` string, required: Google reCAPTCHA v3 token to prevent abuse.

## Response `200`

Payment Intent created

- object
  - `clientSecret` string
  - `paymentIntentId` string
  - `transactionId` string

## Other responses

- `400`: reCAPTCHA verification failed
- `401`: Missing or invalid authentication token
- `404`: User not found
- `429`: Rate limit exceeded
- `500`: Failed to create payment intent

---

[API](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api.md) · [All operations](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/revisions/53e075911af9?raw)
