> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# White Label

> Host and serve the Yuno Web SDK from your own origin without exposing Yuno branding.

> [!NOTE]
>
> **This page documents a legacy SDK.** Starting a new integration? Use the [Yuno SDK](https://docs.y.uno/docs/yuno-sdk/get-started.md). Already on a legacy SDK? Follow the [migration guide](https://docs.y.uno/docs/yuno-sdk/migration/overview.md).
>
> The new **Yuno SDK** (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in **2027**. Contact your Account Manager for migration planning.

White-label support lets a partner serve the Yuno Web SDK from their own origin without the string `Yuno` leaking into the merchant page: not in the DOM, globals, dispatched events, or outgoing network traffic.

> [!TIP]
>
> Shipped in Web SDK 1.9.1. The legacy `window.Yuno` global and `yuno-sdk-ready` event remain as backwards-compatibility aliases, so existing integrations continue to work unchanged.

## What the SDK exposes

| Concern | Primary (white-label) | Legacy alias (still works) |
| :- | :- | :- |
| Global object | `window.SdkPayments` | `window.Yuno` |
| Ready event | `'sdk-payments-ready'` | `'yuno-sdk-ready'` |
| CSS class prefix | `sdk-payments-*` | — |
| DOM `id`, `data-testid`, font link id | `sdk-payments-*` | — |
| Font family | `Sdk-Payments-Inter` | `Yuno-Inter` (kept as fallback) |

Both the new and legacy globals reference the same object, and both events are dispatched on bundle load, so you can mix them during a migration without breaking either form.

## Runtime URL overrides

Partners hosting the SDK on their own origin point the SDK at custom endpoints at `initialize()` time, instead of relying on the compile-time defaults.

```javascript theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
SdkPayments.initialize(publicApiKey, applicationSession, {
  // Overrides the API base URL the SDK calls (REST + WebSocket).
  // Also forwarded into the card-form and secure-fields iframes so
  // their internal calls land on the partner origin too.
  apiUrl: 'https://payments.example.com',

  // Overrides the host that serves SDK static assets — 3DS pages,
  // card-form bundle, fonts, and (in recent SDK builds) the icons,
  // brand logos, and country flags that the SDK otherwise loads straight
  // from icons.prod.y.uno / sdk.prod.y.uno.
  assetUrl: 'https://payments.example.com',
})
```

What each override affects end-to-end:

| Option | Affects |
| :- | :- |
| `apiUrl` | SDK REST calls, WebSocket upgrades, monitoring/Datadog forwarder, secure-fields mediator, card-form iframe API base. |
| `assetUrl` | 3DS challenge / redirect / session-id pages, card-form micro-app URL, font CSS, runtime `__webpack_public_path__` for code-split chunks, and the hard-coded icon / brand-logo / country-flag assets on `icons.prod.y.uno` / `sdk.prod.y.uno` (host-swapped, path preserved; recent SDK builds). |

> [!NOTE]
>
> For a typical white-label deployment, pass the same value to both options. The SDK uses the value verbatim: it no longer appends a `/v<x.y>` segment when `assetUrl` already ends with one, and it does not prepend a regional prefix to overrides.
>
> The static-CDN host-swap (icons, brand logos, flags) routes onto `assetUrl` when set, otherwise falls back to `apiUrl`, so passing both the same value sends every request through a single origin. Only `*.y.uno` asset URLs are rewritten; merchant-supplied icons on external CDNs are left untouched.

## Neutral merchant callbacks

Callback names gained whitelabel-neutral aliases. The legacy `yuno*` names are still accepted and forwarded internally, but are deprecated and will be removed in a future major release.

| Legacy callback | New neutral name |
| :- | :- |
| `yunoCreatePayment` | `createPayment` |
| `yunoPaymentMethodSelected` | `paymentMethodSelected` |
| `yunoPaymentResult` | `paymentResult` |
| `yunoError` | `error` |

## Integration example

```html theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
<!-- Loaded from the partner origin, not sdk-web.y.uno -->
<script src="https://payments.example.com/v1.9/main.js"></script>
<script>
  async function startYuno() {
    const sdk = SdkPayments.initialize(PUBLIC_API_KEY, APPLICATION_SESSION, {
      apiUrl: 'https://payments.example.com',
      assetUrl: 'https://payments.example.com',
    })

    await sdk.startCheckout({
      checkoutSession: CHECKOUT_SESSION,
      createPayment:  (ott, info) => { /* ... */ },
      paymentResult:  (status)    => { /* ... */ },
      error:          (msg, data) => { /* ... */ },
    })

    sdk.mountCheckout()
  }

  if (window.SdkPayments) startYuno()
  else window.addEventListener('sdk-payments-ready', startYuno)
</script>
```

## Verifying a white-label setup

After loading the SDK from a non-Yuno origin, none of the following should appear in the merchant page:

* Elements with `class="yuno-*"` or `id="yuno-*"`.
* A resolved font family of `Yuno-Inter`.
* Network requests to `*.y.uno` hosts, including the static CDNs `icons.prod.y.uno` and `sdk.prod.y.uno` for icons, brand logos, and flags. These are host-swapped onto your origin only on recent SDK builds; older builds still fetch them straight from the CDN.
* From SDK 1.10.9, a `404` for `/sdk-static-bundles-ms/…` on your origin (the font stylesheet). Your proxy must forward `/sdk-static-bundles-ms/*` to `prod.y.uno`. See [Routes a partner proxy must forward](https://docs.y.uno/docs/sdks/customization/web/white-label-proxy-server.md#routes-a-partner-proxy-must-forward).

And these should be present:

* `window.SdkPayments` resolves to the SDK instance factory.
* `'sdk-payments-ready'` fires once on bundle load.
* DOM nodes use `class="sdk-payments-*"` / `id="sdk-payments-*"`.

## Local test harness

A throwaway proxy server lives in the [`yuno-payments/yuno-sdk-web`](https://github.com/yuno-payments/yuno-sdk-web/tree/main/white-label-proxy-server) repo under `white-label-proxy-server/`. It listens on `http://localhost:9090`, serves a landing page from a non-Yuno origin, and transparently proxies SDK asset / API / WebSocket traffic upstream. Point a partner test page's `<script src>` at `http://localhost:9090/v1.7/main.js` to exercise the white-label code paths end-to-end.

> [!NOTE]
>
> The `v1.7` version above and the `v1.9` version in the [Integration example](#integration-example) are both intentional, not a typo: `v1.9` shows a real production SDK version, while `v1.7` is just the local test harness's own hard-coded fallback version (see [Version normalization](https://docs.y.uno/docs/sdks/customization/web/white-label-proxy-server.md#version-normalization)).

```shell theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
cd yuno-sdk-web/white-label-proxy-server
cp .env.example .env   # tweak SDK_UPSTREAM / BACKEND_URL if needed
npm install
npm start              # http://localhost:9090
```

The same harness also fronts the **hosted Payment Link checkout** (normally `checkout.<env>.y.uno`), so that surface can be white-labeled onto a merchant origin/sub-path too. For the merchant-facing flow (rewriting the redirect URL and appending `apiUrl` / `assetUrl`), see [Payment Link White Label](https://docs.y.uno/docs/sdks/customization/web/payment-link-white-label.md).

See [White Label Proxy Server](https://docs.y.uno/docs/sdks/customization/web/white-label-proxy-server.md) for the full architecture, the [hosted checkout white-label](https://docs.y.uno/docs/sdks/customization/web/white-label-proxy-server.md#hosted-checkout-white-label-payment-link) flow, the `SDK_MAIN_JS` version-pinning behaviour, the env-var matrix (prod / staging / dev upstreams), and the routing table.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.