Stripe Payments

Create a payment intent

Creates a Stripe PaymentIntent for one-time payments. Returns clientSecret for frontend Stripe.js integration.

post/v1/payments/create-intent

Request body

amountnumber required

Amount in cents (e.g., 5999 = $59.99)

currencystring required

ISO currency code (lowercase)

planIdstring required

Internal plan identifier

planNamestring required

Display name for receipts

emailstring

Customer email for receipt

userIdstring

Firebase user ID if authenticated

webUserIdstring

Web user ID from tracking system

Example request

{
  "amount": 5999,
  "currency": "usd",
  "planId": "premium_monthly",
  "planName": "Premium Monthly",
  "email": "user@example.com"
}

Response

Payment intent created successfully

clientSecretstring required

Client secret for Stripe.js confirmPayment

paymentIntentIdstring required

Payment Intent ID for reference

Example response

{
  "clientSecret": "pi_xxx_secret_xxx",
  "paymentIntentId": "pi_xxx"
}

Changes

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