# `PaperTiger.Resources.PaymentLink`
[🔗](https://github.com/EnaiaInc/paper_tiger/blob/v1.2.2/lib/paper_tiger/resources/payment_link.ex#L1)

Handles Payment Link resource endpoints and deterministic hosted browser flow.

# `browser_checkout`

```elixir
@spec browser_checkout(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
```

Browser-accessible Payment Link endpoint.

PaperTiger creates a Checkout Session from the Payment Link and redirects to
the existing checkout auto-completion URL. Visiting that URL completes the
payment/subscription side effects and redirects to the configured success URL.

# `browser_complete`

```elixir
@spec browser_complete(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
```

Deterministic success page used by Payment Links without redirect completion.

# `create`

```elixir
@spec create(Plug.Conn.t()) :: Plug.Conn.t()
```

Creates a Payment Link.

# `line_items`

```elixir
@spec line_items(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
```

Lists a Payment Link's line items with Stripe-style cursor pagination.

# `list`

```elixir
@spec list(Plug.Conn.t()) :: Plug.Conn.t()
```

Lists Payment Links.

# `retrieve`

```elixir
@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
```

Retrieves a Payment Link.

# `update`

```elixir
@spec update(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
```

Updates a Payment Link.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
