Worldpay.Exemptions (Worldpay v1.0.0)

Copy Markdown View Source

Worldpay Exemptions API — standalone SCA exemption requests.

Exemption types:

  • "TRA" — Transaction Risk Assessment
  • "lowValue" — Low-value payment (under applicable threshold)
  • "trustedBeneficiary" — Trusted beneficiary
  • "authenticationOutage" — Issuer authentication outage

For SCA exemptions embedded inside a FraudSight assessment, use Worldpay.FraudSight.assess/2 with the "exemption" field.

Example

{:ok, result} = Worldpay.Exemptions.request(%{
  "transactionReference" => "order-123",
  "merchant" => %{"entity" => "default"},
  "instruction" => %{
    "value" => %{"amount" => 500, "currency" => "EUR"},
    "paymentInstrument" => %{"type" => "card/plain", ...}
  },
  "exemption" => %{"type" => "TRA"}
}, config)

Summary

Functions

Request an SCA exemption.

Functions

request(body, config)

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

Request an SCA exemption.