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

> Mettez à niveau le Yuno Web SDK de la v1.1 à la v1.2.0 dans votre checkout

# Migration vers le Web SDK v1.2

La version 1.2.0 est une version **sans changement incompatible**. Aucune modification n'est requise pour les intégrations v1.1 existantes.

## Ce qui a changé

### Paramètre facultatif `options` dans `Yuno.initialize()`

`Yuno.initialize()` accepte désormais un objet de configuration facultatif `options` comme deuxième argument. Les appels existants sans cet argument continuent de fonctionner sans modification.

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
// v1.1 — still valid in v1.2
const yuno = await Yuno.initialize(publicApiKey)

// v1.2 — optional options parameter
const yuno = await Yuno.initialize(publicApiKey, {
  // additional options here
})
```

### Paramètres étendus de `continuePayment`

`continuePayment()` accepte désormais des paramètres facultatifs supplémentaires : `checkoutSession`, `showPaymentStatus`, `yunoPaymentResult`, `yunoError`, `countryCode` et `language`. Tous les paramètres sont facultatifs : les appels existants avec moins d'arguments continuent de fonctionner.

```js theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
// v1.1 usage — still valid in v1.2
await yuno.continuePayment()

// v1.2 — additional optional params available
await yuno.continuePayment({
  checkoutSession,
  showPaymentStatus: true,
  yunoPaymentResult,
  yunoError,
  countryCode: 'US',
  language: 'en',
})
```

## Étapes

### Mettre à jour la balise script

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

### (Facultatif) Adopter les nouveaux paramètres

Aucun changement de code n'est requis. Si vous voulez profiter des nouveaux paramètres facultatifs, mettez à jour vos appels à `initialize()` et `continuePayment()` comme indiqué ci-dessus.

## Liste de vérification

* [ ] Balise script mise à jour vers la v1.2
* [ ] (Facultatif) Paramètre `options` ajouté à `Yuno.initialize()` si nécessaire
* [ ] (Facultatif) `continuePayment()` étendu avec des paramètres supplémentaires si nécessaire


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