> ## 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.

# Web SDK: Migrating to v1.5

> Upgrade the Yuno Web SDK from v1.4 to v1.5.0, including the Lite SDK mountExternalButtons change

# Migrating to Web SDK v1.5

Version 1.5.0 changes how Google Pay and Apple Pay are rendered in the **Lite SDK**. Full SDK integrations are not affected.

## What changed

In v1.5.0, Lite SDK users must explicitly call `mountExternalButtons()` to render Google Pay and Apple Pay buttons. These payment methods no longer render automatically as radio buttons within the payment method list.

Full SDK integrations have **no breaking changes** — Google Pay and Apple Pay will automatically display as direct buttons instead of radio buttons, requiring no code changes.

## Who is affected

* **Lite SDK users**: action required (see steps below)
* **Full SDK users**: no action required

## Steps (Lite SDK only)

### 1. Update the script tag

```html theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
<script src="https://sdk-web.y.uno/v1.5/main.js"></script>
```

### 2. Add HTML elements for wallet buttons

Add container elements in your HTML where you want the buttons to appear:

```html theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
<div id="apple-pay"></div>
<div id="google-pay"></div>
```

### 3. Call `mountExternalButtons()` after `startCheckout`

**Before:**

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
// Lite SDK — wallet buttons rendered automatically
await yuno.startCheckout({ checkoutSession, countryCode, elementSelector: '#root' })
```

**After:**

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
// Explicitly mount wallet buttons after startCheckout
await yuno.startCheckout({ checkoutSession, countryCode, elementSelector: '#root' })

await yuno.mountExternalButtons([
  {
    paymentMethodType: 'APPLE_PAY',
    elementSelector: '#apple-pay',
  },
  {
    paymentMethodType: 'GOOGLE_PAY',
    elementSelector: '#google-pay',
  },
])
```

### 4. (Optional) Unmount buttons when needed

To unmount a single button:

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
yuno.unmountExternalButton('APPLE_PAY')
```

To unmount all external buttons at once:

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
yuno.unmountAllExternalButtons()
```


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