Skip to main content
Use stripe.createCheckoutSession to create a Stripe-hosted, embedded, Elements, or form Checkout Session.

Example

automations/stripe-create-checkout-session.automation.ts

Inputs

Choose payment, setup, or subscription mode and provide the matching Stripe fields. uiMode accepts hosted_page, embedded_page, elements, or form; only hosted_page accepts successUrl. idempotencyKey is optional. Inputs use camel case and accept compatible signals. Automate.ax converts provider fields to Stripe’s wire format. Metadata keys remain unchanged.

Output

Returns the created Stripe Checkout Session, including its hosted URL when applicable. Output fields use camel case. Stripe decimal fields such as fxRate are lossless strings.