# Widget settings

> Find the Service Picker and Subscription Details previews, copy embed code and replace placeholders before publishing a widget.

Canonical: https://komashi.com/docs/provider/Settings/12widgets/
Language: en

Open **Control Center → Integration → Widgets**. This page shows your provider's example embeds and copyable integration snippets. It does not create a separate saved widget configuration.

Video (English narration): [Embed widgets](https://www.youtube.com/watch?v=q68rg-HXup8)

## Before you start

Create a service first. If the provider has none, the page displays **Create a service first** with a link to **Manage services**, instead of the widget examples.

For an existing service, choose one of the tabs:

- **Service Picker** for the customer-facing service selection interface.
- **Subscription Details** for an existing subscription's interface.

## Service Picker preview

The **Embedded example** renders a service from the provider so you can inspect its content and pricing. It is a preview, not an instruction to create a real customer checkout from this page.

[![Widgets page with the Service Picker preview and its copyable embed code](https://komashi.com/docs/assets/images/integrations-service-picker.png)](/assets/images/integrations-service-picker.png)

Below the preview, find **Service Picker embed code** and click **Copy**. Paste it into your website, replace `YOUR_SERVICE_ID` with the intended service ID, and retain `data-view="service-picker"`.

Changing a service's plans, prices or content is done in the service editor. Those service settings drive the rendered widget; this page is not a second pricing editor.

## Subscription Details preview

Switch to **Subscription Details**. If a suitable subscription exists, the example displays its subscription interface.

[![Widgets page with the Subscription Details example and its embed code](https://komashi.com/docs/assets/images/integrations-subscription-details.png)](/assets/images/integrations-subscription-details.png)

Copy **Subscription Details embed code**, replace `YOUR_SUBSCRIPTION_ID` with the individual subscription's ID, and keep `data-view="subscription-details"`.

If no suitable subscription exists for the example, the page asks you to create one before showing the preview. The Subscription Details embed snippet is still available when the provider has a service. A missing example is not an instruction to use a fake subscription ID.

## What to change in the copied code

| Value | What to do |
| --- | --- |
| Script URL | Use the host generated for the environment you are publishing against. A local `.test` URL is only for local development. |
| Service/subscription placeholder | Replace it with a real resource ID. |
| `data-view` | Keep it aligned with the required ID type. |
| `data-redirect-url` | Add it if your integration needs a supported return destination. |
| Customer context | Supply `data-customer-id` only when your application knows and authorizes the appropriate customer. |

Do not paste an API key into the HTML. The [Embed widgets](https://komashi.com/docs/provider/Developers/widget-integration/index.md) guide contains complete examples, attributes, layout notes and troubleshooting.
