> ## 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 : migration vers la v1.5

> Mettez à niveau le Yuno Web SDK de la v1.4 à la v1.5.0, y compris le changement de mountExternalButtons du Lite SDK

# Migration vers le Web SDK v1.5

La version 1.5.0 change la façon dont Google Pay et Apple Pay sont affichés dans le **Lite SDK**. Les intégrations Full SDK ne sont pas concernées.

## Ce qui a changé

Dans la v1.5.0, les utilisateurs du Lite SDK doivent appeler explicitement `mountExternalButtons()` pour afficher les boutons Google Pay et Apple Pay. Ces moyens de paiement ne s'affichent plus automatiquement sous forme de boutons radio dans la liste des moyens de paiement.

Les intégrations Full SDK n'ont **aucun changement incompatible** : Google Pay et Apple Pay s'affichent automatiquement comme des boutons directs au lieu de boutons radio, sans aucun changement de code.

## Qui est concerné

* **Utilisateurs du Lite SDK** : action requise (voir les étapes ci-dessous)
* **Utilisateurs du Full SDK** : aucune action requise

## Étapes (Lite SDK uniquement)

### Mettre à jour la balise script

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

### Ajouter les éléments HTML pour les boutons de wallet

Ajoutez des éléments conteneurs dans votre HTML à l'endroit où vous voulez que les boutons apparaissent :

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

### Appeler `mountExternalButtons()` après `startCheckout`

**Avant :**

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

**Après :**

```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',
  },
])
```

### (Facultatif) Démonter les boutons si nécessaire

Pour démonter un seul bouton :

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

Pour démonter tous les boutons externes en une seule fois :

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