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

# React Native Lite

> Use o Lite SDK para uma integração semipersonalizada em que você controla a interface de seleção do meio de pagamento.

> [!NOTE]
>
> **Esta página documenta um SDK legado.** Vai começar uma nova integração? Use o [Yuno SDK](https://docs.y.uno/pt-br/docs/yuno-sdk/get-started.md). Já usa um SDK legado? Siga o [guia de migração](https://docs.y.uno/pt-br/docs/yuno-sdk/migration/overview.md).
>
> O novo **Yuno SDK** (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) substitui os SDKs Full, Lite, Seamless, Render, Headless e Secure Fields por uma única API em todas as plataformas. Os SDKs legados continuam com suporte em paralelo durante a transição, e a descontinuação deles está prevista para **2027**. Entre em contato com o seu Account Manager para planejar a migração.

> [!WARNING]
>
> **Orientation: Choosing Your Integration Flow**, before you begin, please review the [Official Integration Flow](https://docs.y.uno/docs/sdks/overview/understanding-flows.md).
>
> * **Standard Flow ([Full Checkout](https://docs.y.uno/docs/sdks/full-checkout/web-payments))**: Recommended for most merchants. Yuno handles the UI, security, and automatic updates for payment methods.
> * **Custom Flow (This SDK)**: Use this only if you require full control over the UX. **Note**: You will be responsible for manually handling payment statuses, 3DS transitions, and fraud routing data collection.

O Lite SDK permite que você crie sua própria tela de seleção de meio de pagamento, enquanto a Yuno cuida do processo de pagamento em si e da segurança.

## Opções alternativas de montagem

O [fluxo de pagamento básico](https://docs.y.uno/pt-br/docs/sdks/additional-platforms/react-native.md#basic-payment-flow-full-checkout) usa a exibição automática dos meios de pagamento. Para ter mais controle, use estas alternativas:

### Seleção personalizada do meio de pagamento (`startPaymentLite`)

Selecione qual meio de pagamento exibir:

```typescript theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
// 1. Fetch available methods
const methods = await fetchPaymentMethods(sessionId);

// 2. Display in your UI
// 3. Start payment with selected method

await YunoSdk.startPaymentLite(
  {
    checkoutSession: session.checkoutSession,
    methodSelected: {
      paymentMethodType: selectedMethod, // 'CARD', 'PIX', etc.
      vaultedToken: null, // or saved token
    },
    showPaymentStatus: true,
  },
  'US' // Optional country code override
);
```

### Fluxo simplificado (`startPaymentSeamlessLite`)

Semelhante ao Lite, mas com criação automática do pagamento:

```typescript theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
await YunoSdk.startPaymentSeamlessLite({
  checkoutSession: session.checkoutSession,
  methodSelected: {
    paymentMethodType: 'CARD',
    vaultedToken: null, // or saved token
  },
  showPaymentStatus: true,
  countryCode: 'US',
});
```

## Pagamentos com token salvo

Use meios de pagamento salvos para uma experiência de checkout mais rápida.

```typescript theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
await YunoSdk.startPaymentLite({
  checkoutSession: session.checkoutSession,
  methodSelected: {
    paymentMethodType: 'CARD',
    vaultedToken: 'vtok_saved_card_123',
  },
  showPaymentStatus: true,
});
```

## Parâmetros

| Parâmetro | Descrição |
| - | - |
| `checkoutSession` | ID da sessão de checkout gerado pelo seu backend. |
| `methodSelected.paymentMethodType` | Tipo de meio de pagamento (por exemplo, `CARD`, `PIX`). |
| `methodSelected.vaultedToken` | Token do meio de pagamento salvo, ou `null` para um cartão novo. |
| `showPaymentStatus` | Quando `true`, o SDK exibe a interface com o resultado do pagamento. |
| `countryCode` | Substituição opcional do código de país ISO (por exemplo, `US`). |


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