Payments

Create a Stripe Payment Intent

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.

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

Request body

amountnumber float required

Charge amount in the selected currency.

currencystring

Three-letter ISO currency code.

appIdstring required

Application identifier tied to the purchase.

descriptionstring

Optional description that appears in Stripe and receipts.

recaptchaTokenstring required

Google reCAPTCHA v3 token to prevent abuse.

Example request

{
  "amount": 49.99,
  "currency": "USD",
  "appId": "react-blog",
  "description": "React Blog professional add-on"
}

Response

Payment Intent created

clientSecretstring
paymentIntentIdstring
transactionIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.