LumnCheckout

Embedded checkout component. Wraps Stripe Checkout in an iframe — pass customerId and productSlug, get a complete checkout flow.

typescript
import { LumnProvider, LumnCheckout } from '@lumnsh/react';
function CheckoutPage() {
return (
<LumnProvider apiKey={process.env.NEXT_PUBLIC_LUMN_API_KEY} baseUrl={process.env.NEXT_PUBLIC_LUMN_API_BASE_URL}>
<LumnCheckout
customerId="user_123"
productSlug="pro"
priceInterval="monthly"
branding={{
background_color: '#0a0a0a',
button_color: '#22c55e',
border_style: 'rounded',
}}
onComplete={() => console.log('Checkout complete!')}
/>
</LumnProvider>
);
}

LumnCheckoutProps

Parameter reference
ParameterTypeRequiredDescriptionExample
customerIdstringRequiredCustomer identifier in your system.'user_123'
productSlugstringRequiredUnique product identifier (slug).'pro'
priceIntervalPricingIntervalOptionalBilling interval. Default: 'monthly''monthly'
brandingCheckoutBrandingOptionalUI customization for the checkout iframe (colors, font, borders).-
branding.background_colorstringOptionalHex color for the checkout background.'#0a0a0a'
branding.button_colorstringOptionalHex color for the primary CTA button.'#22c55e'
branding.border_style'pill' | 'rectangular' | 'rounded'OptionalBorder style for inputs and buttons.'rounded'
onCompletefunctionOptionalCallback when the checkout flow is successfully completed.-
classNamestringOptionalAdditional CSS classes for the iframe container.-

Interactive UI & Output

Paste your API key above to try

Parameters