Skip to main content
Called automatically by the embed widget when a user clicks “Choose Plan”. You typically don’t call this directly.

Endpoint

POST /api/stripe/checkout

Body

planId
number
required
The ID of the plan
shareId
string
required
Your project’s Share ID
email
string
Customer email (pre-fills on Stripe checkout)
billingInterval
string
"month" or "year"

Response

{
  "url": "https://checkout.stripe.com/c/pay/cs_live_..."
}
The url is the Stripe Checkout page. The embed widget redirects the user there automatically.