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

Handles ConfirmationToken retrieval and test-helper creation.

# `consume`

```elixir
@spec consume(String.t(), :payment_intent | :setup_intent, String.t()) ::
  {:ok, map(), map()}
  | {:error, :confirmation_token_not_found, String.t()}
  | {:error, :confirmation_token_used}
  | {:error, :missing_payment_method}
  | {:error, :payment_method_not_found, String.t()}
```

Consumes a ConfirmationToken for an intent confirmation.

# `create_test_helper`

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

Creates a test-mode ConfirmationToken.

# `retrieve`

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

Retrieves a ConfirmationToken by ID.

---

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