# `Worldpay.Verifications`
[🔗](https://github.com/iamkanishka/worldpay/blob/v1.0.0/lib/worldpay/access/data.ex#L95)

Worldpay **Verifications API** — card and bank account verification.

## Card verification

    {:ok, result} = Worldpay.Verifications.verify_card(%{
      "transactionReference" => "verify-001",
      "merchant" => %{"entity" => "default"},
      "instruction" => %{
        "narrative" => %{"line1" => "Active Card Check"},
        "paymentInstrument" => %{"type" => "card/plain", ...}
      }
    }, config)

    result["outcome"]  # => "verified" | "notVerified" | "verificationFailed"

## Beneficiary Account Verification

    {:ok, result} = Worldpay.Verifications.verify_account(%{
      "merchant" => %{"entity" => "default"},
      "payoutInstrument" => %{
        "type" => "bankAccount",
        "accountNumber" => "12345678",
        "routingNumber" => "021000021"
      }
    }, config)

# `verify_account`

```elixir
@spec verify_account(map(), Worldpay.Config.t()) ::
  {:ok, map()} | {:error, Worldpay.Error.t()}
```

Beneficiary Account Verification — verify bank account before payout.

# `verify_card`

```elixir
@spec verify_card(map(), Worldpay.Config.t()) ::
  {:ok, map()} | {:error, Worldpay.Error.t()}
```

Intelligent card-on-file verification.

# `verify_card_dynamic`

```elixir
@spec verify_card_dynamic(map(), Worldpay.Config.t()) ::
  {:ok, map()} | {:error, Worldpay.Error.t()}
```

Dynamic card-on-file verification (with `storedCredentials.reason`).

---

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