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

# Web SDK: Migrating to v1.2

> How to upgrade from Web SDK v1.1 to v1.2.0

# Migrating to Web SDK v1.2

Version 1.2.0 is a **non-breaking** release. No changes are required for existing v1.1 integrations.

## What changed

### Optional `options` parameter in `Yuno.initialize()`

`Yuno.initialize()` now accepts an optional `options` configuration object as a second argument. Existing calls without this argument continue to work without modification.

```js theme={"theme":{"light":"github-dark","dark":"github-dark"}}
// 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
})
```

### Extended `continuePayment` parameters

`continuePayment()` now accepts additional optional parameters: `checkoutSession`, `showPaymentStatus`, `yunoPaymentResult`, `yunoError`, `countryCode`, and `language`. All parameters are optional — existing calls with fewer arguments continue to work.

```js theme={"theme":{"light":"github-dark","dark":"github-dark"}}
// 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',
})
```

## Steps

### 1. Update the script tag

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

### 2. (Optional) Adopt new parameters

No code changes are required. If you want to take advantage of the new optional parameters, update your `initialize()` and `continuePayment()` calls as shown above.

## Checklist

* [ ] Updated script tag to v1.2
* [ ] (Optional) Added `options` parameter to `Yuno.initialize()` if needed
* [ ] (Optional) Extended `continuePayment()` with additional params if needed
