Theme Playground

One theme prop drives FloPayCheckout and FloPayAutomaticPaymentButton. Pick a theme, optionally layer Customise overrides on top, copy the snippet.

Theme
Layout
Card field order (vault)
Drop-in snippet
import { FloPayCheckout } from '@flopay/react'
import { configureFlopay } from '@flopay/shared'

configureFlopay({ environment: 'production' })

export function Checkout() {
	return (
		<FloPayCheckout
			theme={"modern-light"}
			layout={"default"}
			createSession={{
				"clientId": "YOUR_CLIENT_ID",
				"currency": "EUR",
				"products": [
					{
						"code": "demo_item_green_pot",
						"quantity": 1
					}
				],
				"account": {
					"userId": "theme-preview",
					"email": "theme-preview@flopay.com",
					"firstName": "Theme",
					"lastName": "Preview",
					"country": "ES"
				},
				"successUrl": "https://your-app.com/success",
				"cancelUrl": "https://your-app.com/checkout"
			}}
			onComplete={(result) => {
				window.location.href = '/success'
			}}
		/>
	)
}