Options Reference
Complete reference of all Drimer.init() parameters.
| Parameter | Type | Required | Description |
|---|
publicKey | string | Yes | Your partner public key (pk_live_...) |
token | string | Yes | Session token from the Partner API |
element | string | HTMLElement | Yes | CSS selector or DOM element for the widget container |
config | WidgetConfig | No | Theme and locale configuration |
| Property | Type | Default | Description |
|---|
locale | string | "es" | Language code (see Localization) |
theme | ThemeConfig | — | Color customization |
| Property | Type | Default | Description |
|---|
primaryColor | string | "#171717" | Hex color for buttons and accents |
primaryColorForeground | string | "#fafafa" | Hex color for text on primary surfaces |
Drimer.init({
publicKey: "pk_live_abc123",
token: "your_session_token",
element: "#amelia",
config: {
locale: "en",
theme: {
primaryColor: "#dc2626",
primaryColorForeground: "#ffffff",
},
},
});