Payments

Checkout

The checkout API route handles the creation of a Stripe checkout session for the current user. It automatically creates a Stripe customer if one doesn't exist yet, and links it to the user's profile in Supabase.

The mode prop on the checkout session (payment or subscription) is determined by the pricingType prop passed to the Pricing component. See the Pricing documentation for more details.

Usage

Unlock full documentation

This part of the documentation are for members only. Please upgrade your plan to unlock this section.

On this page