Lithic.Resources.ThreeDS (Lithic v1.0.0)

Copy Markdown View Source

3-D Secure (3DS) — authentication management, decisioning, and challenge flows.

3DS Decisioning webhook

Lithic calls your endpoint for each 3DS authentication. Use the HMAC secret to verify requests, then respond with an approve/decline decision.

secret = Lithic.ThreeDS.get_decisioning_secret()
Lithic.Webhook.verify(body, sig, ts, secret: secret["secret"])

Summary

Functions

Retrieve the HMAC secret for 3DS Decisioning webhook verification.

Rotate the 3DS Decisioning HMAC secret.

Simulate a 3DS authentication (sandbox only).

Simulate entering OTP into the 3DS Challenge UI (sandbox only).

Functions

get(three_ds_authentication_token, opts \\ [])

@spec get(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, Lithic.Error.t()}

get_decisioning_secret(opts \\ [])

@spec get_decisioning_secret(keyword()) :: {:ok, map()} | {:error, Lithic.Error.t()}

Retrieve the HMAC secret for 3DS Decisioning webhook verification.

list(opts \\ [])

@spec list(keyword()) :: {:ok, Lithic.Page.t(map())} | {:error, Lithic.Error.t()}

respond_to_challenge(three_ds_authentication_token, params, opts \\ [])

@spec respond_to_challenge(String.t(), map(), keyword()) ::
  {:ok, map()} | {:error, Lithic.Error.t()}

Respond to a 3DS challenge request.

rotate_decisioning_secret(opts \\ [])

@spec rotate_decisioning_secret(keyword()) ::
  {:ok, map()} | {:error, Lithic.Error.t()}

Rotate the 3DS Decisioning HMAC secret.

simulate(params, opts \\ [])

@spec simulate(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Lithic.Error.t()}

Simulate a 3DS authentication (sandbox only).

simulate_otp_entry(three_ds_authentication_token, params, opts \\ [])

@spec simulate_otp_entry(String.t(), map(), keyword()) ::
  {:ok, map()} | {:error, Lithic.Error.t()}

Simulate entering OTP into the 3DS Challenge UI (sandbox only).