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

# Seamless SDK

> Yuno's Seamless SDK provides a simple and efficient integration while giving you full control over the payment experience.

> [!NOTE]
>
> **This page documents a legacy SDK.** Starting a new integration? Use the [Yuno SDK](https://docs.y.uno/docs/yuno-sdk/get-started.md). Already on a legacy SDK? Follow the [migration guide](https://docs.y.uno/docs/yuno-sdk/migration/overview.md).
>
> The new **Yuno SDK** (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in **2027**. Contact your Account Manager for migration planning.

Like the [Lite SDK](https://docs.y.uno/docs/sdks/overview/quickstart.md), the Seamless SDK lets you retrieve available payment methods and decide which to display during checkout. Once the selection is made, a single API and SDK call completes the payment process, creating an experience identical to the Lite SDK.

When using the Seamless SDK, you can:

* Execute the payment process.
* Enroll a credit card while making a payment by setting `vault_on_success: true` when creating the payment.
* Use a vaulted token from an enrolled payment method to complete a payment.

Use the following guides to implement each process.

![Seamless SDK Overview](https://files.readme.io/bb2c987a467228d113d98035f453a459aedfb41554aad3eb49fc50fed8dbf0a0-Screenshot_2025-06-04_at_10.45.05_AM.png)

## Payment workflow

The diagram below illustrates the complete payment workflow:

![Seamless SDK Payment Workflow](https://files.readme.io/aa0edc30b1470562f8cc1380856aacb410d41aa6417d863e2c65476d26481fa4-image1.png)

### SDK Headless Payment Flow

This diagram illustrates the headless payment process using the SDK, detailing the interactions between the Merchant Client, Merchant Server, Yuno Server, and Yuno SDK. It outlines the steps from initiating a checkout and requesting payment methods to creating and receiving the payment result.

#### Merchant Client

The Merchant Client represents your app that interacts with both your backend server and the Yuno SDK. It handles the user-facing aspects of the payment flow, including:

* List payment method
* User selects payment methods
* Initiate SDK with checkout session and `payment_method`

#### Merchant Server

The Merchant Server represents your app that handles server-side operations and communicates with Yuno's servers. Its key responsibilities include:

* Create `checkout_session`
* Receive webhook with payment result

#### Yuno Server

The Yuno Server handles all backend operations related to customer management, checkout sessions, and payment processing. Its main responsibilities include:

* Creates `checkout_session`
* Create payment
* Sends webhook with payment result

#### Yuno SDK

The Yuno SDK handles the user interface and payment flow on the client side, managing payment method selection, token generation, and payment completion. Its key responsibilities include:

* Initiate SDK with `checkout_session` and `payment_method`
* Generate OTT
* Continue payment automatically if necessary
* Shows screens for user to complete enrollment
* Display payment method result (optional)

#### Flow

The following steps outline the complete interaction flow between all components of the SDK Headless Payment integration, detailing how each request and response moves through the system:

1. Merchant Server: Create `checkout_session` --> Yuno Server: Creates `checkout_session`
2. Merchant Client: Initiate SDK with checkout session and `payment_method` --> Yuno SDK: Initiate SDK with `checkout_session` and `payment_method`
3. Yuno Server: Create payment --> Yuno SDK: Generate OTT

## Platform-specific SDK setup

To implement the Full SDK integration, follow the platform-specific guides below:

> [card] [Web](https://docs.y.uno/docs/sdks/seamless-sdk/web-payments.md)
>
> Integrate Seamless SDK for Web applications.

> [card] [iOS](https://docs.y.uno/docs/sdks/seamless-sdk/ios-payments.md)
>
> Integrate Seamless SDK for iOS applications.

> [card] [Android](https://docs.y.uno/docs/sdks/seamless-sdk/android-payments.md)
>
> Integrate Seamless SDK for Android applications.


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