> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onflay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Products/Prices vs Listings/Variants

> Cuándo usar el modelo de catálogo técnico y cuándo usar ofertas de creador.

Onflay tiene dos modelos relacionados para vender.

## Products y Prices

Úsalos cuando quieres un catálogo técnico controlado desde código:

* apps SaaS;
* planes o precios definidos;
* catálogo versionado;
* checkout con `lineItems` y `priceId` (compatible) o con `listingId`/`variantId` usando codegen.

```ts theme={"dark"}
const session = await onflay.checkoutSessions.create({
  lineItems: [{ priceId: 'price_...', quantity: 1 }], // opción compatible
  successUrl: 'https://tu-app.com/gracias',
  cancelUrl: 'https://tu-app.com/precios',
});
```

## Listings y Variants

Úsalos cuando vendes ofertas creadas en Onflay:

* productos digitales;
* servicios;
* consultas;
* talleres;
* variantes de duración, paquete o acceso.

```ts theme={"dark"}
const session = await onflay.checkoutSessions.create({
  listingId: 'lst_...',
  variantId: 'var_...',
  customerEmail: 'comprador@ejemplo.com',
  successUrl: 'https://tu-app.com/gracias',
  cancelUrl: 'https://tu-app.com/cancelado',
});
```

## Regla rápida

| Necesitas                                     | Usa               |
| --------------------------------------------- | ----------------- |
| Planes o precios desde código                 | Products/Prices   |
| Una oferta creada por un creador              | Listings/Variants |
| Checkout con `priceId` (`lineItems`)          | Products/Prices   |
| Checkout con `listingId`                      | Listings/Variants |
| Variantes como básico/premium o 30/60 minutos | Listings/Variants |

## Montos

Onflay opera en USD. Los montos técnicos se expresan en centavos:

```json theme={"dark"}
{ "currency": "usd", "unitAmountInCents": 2900 }
```
