Payments

Create a hosted Stripe Checkout session

Create a Stripe Checkout session for a single payment. A pending transaction record is created and reconciled after webhook confirmation.

For AI agents: Use when users need a full checkout experience with Stripe-hosted payment pages.

post/payments/stripe/create-checkout-session

Request

  • Base URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api
  • URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/payments/stripe/create-checkout-session
  • Auth: HTTP bearer

Request body

amountnumber float required

Charge amount in the selected currency.

currencystring

Three-letter ISO currency code.

appIdstring required

Application identifier associated with the payment.

descriptionstring

Optional line item description shown on the checkout page.

recaptchaTokenstring required

Google reCAPTCHA v3 token.

Example request

{
  "amount": 79,
  "appId": "ai-caller",
  "description": "AI Caller subscription upgrade"
}

Response

Checkout session created

sessionIdstring
urlstring uri
transactionIdstring

Changes

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