# `Payzum.Config`
[🔗](https://github.com/payzum-dev/payzum-elixir/blob/main/lib/payzum/transport.ex#L1)

Client configuration, validated once at construction.

# `t`

```elixir
@type t() :: %Payzum.Config{
  api_key: String.t(),
  base_url: String.t(),
  max_retries: non_neg_integer(),
  timeout: pos_integer()
}
```

# `new`

```elixir
@spec new(String.t(), keyword()) ::
  {:ok, t()} | {:error, Payzum.Errors.Validation.t()}
```

Build a configuration.

The API key check mirrors the server: at least 32 characters and nothing else,
because being stricter here would reject keys the API accepts.

# `production`

# `sandbox`

---

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