Create 3D Secure (3DS) sessions for card payments.
A 3DS session authenticates a tokenised card against the resource being paid for, satisfying Strong Customer Authentication (SCA) requirements.
See the Duffel documentation.
Summary
Functions
Creates a 3DS session for a card payment.
Functions
@spec create(Duffel.Client.t(), map(), keyword()) :: {:ok, map()} | {:error, Duffel.Error.t()}
Creates a 3DS session for a card payment.
resource_id is the offer, order, quote or booking being paid for.
Examples
Duffel.ThreeDSecureSessions.create(client, %{
card_id: "tcd_123",
resource_id: "off_123",
services: [%{id: "ase_123", quantity: 1}]
})