# `MishkaPay.Helpers.Plugins`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/lib/mishka_pay/__helpers/plugins.ex#L5)

Runs the host plugins of a mishka_installer event so that none of them can take the caller down:
in a task under `MishkaPay.TaskSupervisor`, not linked to the caller, within a time limit. Used for
the keys plugins (`MishkaPay.Credentials`) and the checkout gate (`MishkaPay.checkout/1`).

# `failure`

```elixir
@type failure() :: :cannot_run | :raised | :exited | :timeout
```

# `call`

```elixir
@spec call(String.t(), term(), timeout()) :: {:ok, term()} | {:error, failure()}
```

The event's answer to `state`, or why there is none: `:cannot_run` (a plugin is registered but
not loaded), `:raised`, `:exited` (an `exit` or `throw`, logged with its exit) or `:timeout`.

---

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