import { ZahloCheckout } from "@zahlo/sdk";
const checkout = new ZahloCheckout({
apiUrl: "https://merchant-demo.zahlo.eu",
sessionId,
clientToken,
appearance: {
theme: "auto",
locale: "en",
merchantName: "Example Store",
logoUrl: "https://store.example/assets/logo.svg",
colors: {
primary: "#087A60",
background: "#FFFFFF",
text: "#17211D",
muted: "#5A625D",
},
fontFamily: "Inter, system-ui, sans-serif",
spacing: "comfortable",
customCss: ".zahlo-checkout-card { border-radius: 12px; }",
},
onStatusChange: (status) => renderCheckoutStatus(status),
onSuccess: () => showPendingConfirmation(),
onError: (error) => showRetry(error),
});
await checkout.mount("#zahlo-checkout");