Theme Validator
Validate your checkoutTheme configuration before going live.
Paste your theme configuration below to check it against the supported schema.
Use Check URL to validate a complete checkout URL or query string, including
duplicate checkoutTheme parameters. Checks run locally without opening the URL.
Switch between Payment methods and Card details in the preview to see how
your theme looks across the checkout journey.
Omitted options use checkout's defaults. Provider-controlled payment forms are still approximations, not live provider components.
The preview uses illustrative payment methods and does not process payments.
Leave an option empty to keep checkout's default, shown as the placeholder. Version 1 is added for you.
Add it to your iframe URL
Run this after the iframe with id payment-iframe exists in the DOM. Replace checkoutUrl with the checkout session URL from your API response.
const iframeUrl = new URL(checkoutUrl);
iframeUrl.searchParams.set(
"checkoutTheme",
JSON.stringify({
"version": 1,
"primaryColor": "#166534",
"primaryTextColor": "#ffffff",
"buttonRadius": 4
}),
);
document.getElementById("payment-iframe").src = iframeUrl.toString();checkoutTheme=%7B%22version%22%3A1%2C%22primaryColor%22%3A%22%23166534%22%2C%22primaryTextColor%22%3A%22%23ffffff%22%2C%22buttonRadius%22%3A4%7D