# `PaperTiger.MandateHelper`
[🔗](https://github.com/EnaiaInc/paper_tiger/blob/v1.2.2/lib/paper_tiger/mandate_helper.ex#L1)

Builds and stores Mandate objects for successful intent flows.

# `ensure_for_payment_intent`

```elixir
@spec ensure_for_payment_intent(map(), map() | nil, map()) :: {:ok, String.t() | nil}
```

Ensures a PaymentIntent has a stored Mandate when its payment method requires one.

# `ensure_for_setup_intent`

```elixir
@spec ensure_for_setup_intent(map(), map(), map()) :: {:ok, String.t() | nil}
```

Ensures a SetupIntent has a stored Mandate when its payment method requires one.

---

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