White-label support lets a partner serve the Yuno Web SDK from their own origin without the stringDocumentation Index
Fetch the complete documentation index at: https://docs.y.uno/llms.txt
Use this file to discover all available pages before exploring further.
Yuno leaking into the merchant page — neither in the DOM, globals, dispatched events, nor outgoing network traffic.
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) |
Runtime URL overrides
Partners hosting the SDK on their own origin point the SDK at custom endpoints atinitialize() time, instead of relying on the compile-time defaults.
| 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. |
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.Neutral merchant callbacks
Callback names gained whitelabel-neutral aliases. The legacyyuno* 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
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-*"orid="yuno-*". - A resolved font family of
Yuno-Inter. - Network requests to
*.y.unohosts.
window.SdkPaymentsresolves 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 theyuno-payments/yuno-sdk-web 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.
SDK_MAIN_JS version-pinning behaviour, the env-var matrix (prod / staging / dev upstreams), and the routing table.