Skip to the content.
How U.S. Payments Really Work Part 9
How U.S. Payments Really Work Part 9

Money Flows, Chargebacks, and Rails: A Leader’s Guide to 3-D Secure

The rail that powers commerce — with a hidden settlement machine behind the scenes.

Suma Manjunath
Author: Suma Manjunath
Published on: August 29, 2025

Money Flows, Chargebacks, and Rails: A Leader's Guide to 3-D Secure

Audience: Engineering leaders, fintech architects, payment operations managers
Reading Time: 8 minutes
Prerequisites: Familiarity with card payment flows, Rails applications, and dispute management
Why now: As fraud grows and issuers demand stronger authentication, 3-D Secure is moving from compliance checkbox to profitability lever.

TL;DR:

⚠️ Disclaimer: All scenarios, accounts, names, and data used in examples are not real. They are realistic scenarios provided only for educational and illustrative purposes.


The Baseline: Card Money Flow (No 3DS)

sequenceDiagram
    autonumber
    participant C as Customer
    participant M as Merchant (Rails)
    participant A as Acquirer/PSP
    participant N as Card Network
    participant I as Issuer Bank

    C->>M: Enter card & submit
    M->>A: Authorization request
    A->>N: Route
    N->>I: Forward auth
    I-->>N: Approve/Decline
    N-->>A: Response
    A-->>M: Auth result
    M-->>C: Checkout result

    Note over M,I: If later disputed for fraud, merchant<br/>bears liability (no 3DS liability shift).

Why it matters: a successful 3DS authentication generally shifts liability for fraud-related chargebacks from merchant to issuer (with some scheme-specific exceptions).


Rails: Integration Posture (Code is Easy; Ownership is Hard)

Here’s the orchestration shape you’ll own in Rails, regardless of PSP:

# app/controllers/payments_controller.rb
class PaymentsController < ApplicationController
  def create
    payment = Payment.new(payment_params)

    # 1) Initiate 3DS
    three_ds = ThreeDSService.initiate(payment)

    if three_ds.challenge_required?
      # 2) Redirect/present issuer challenge (3DS2)
      redirect_to three_ds.challenge_url and return
    end

    # 3) Authorize with 3DS proof attached
    auth = PaymentGateway.authorize(
      payment,
      three_ds: {
        eci: three_ds.eci,
        cavv: three_ds.cavv,
        ds_transaction_id: three_ds.ds_transaction_id,
        version: three_ds.version
      }
    )

    render json: { status: auth.status }
  end
end

What actually protects you isn’t the controller—it’s the evidence you persist:


Yes, Chargebacks Can Still Happen After Successful 3DS

Key reality: 3DS authenticates the cardholder. It shifts liability for fraud-coded disputes when successful. It does not fix disputes like delivery, quality, billing errors, or misrepresentation.

Why 3DS Doesn’t Prevent All Chargebacks

  1. Fraudulent authentication still happens: fraudsters may occasionally bypass 3DS.
  2. Non-fraud reasons remain: delivery issues, product dissatisfaction, billing errors, or misrepresentation are still valid disputes.

Examples:

What to Do If You Receive a Chargeback on a 3DS Transaction

graph TD
    A([Dispute received]) --> B{Reason code = Fraud?}
    B -->|Yes| C{3DS successful & evidence on file?}
    C -->|Yes| D[Invoke liability shift - submit ECI/CAVV/DS txn id]
    C -->|No| E[Defend as standard fraud - limited coverage]
    B -->|No| F[Non-fraud dispute - delivery/quality/billing]
    F --> G[Defend with other evidence - PoD, comms, refund policy]
    D --> H([Outcome: issuer bears fraud liability])
    E --> H
    G --> I([Outcome: merchant must defend on merits])

Key takeaway: 3DS is a powerful fraud liability shield, but not a complete solution. You must still manage non-fraud disputes with operational processes and provide 3DS proof for fraud-related ones.

As engineering leaders, our role is to ensure payments systems are not only functional but also financially defensive. 3DS is more than compliance—it’s a lever to protect margin, shift liability, and earn issuer trust.

Done well, it doesn’t just prevent fraud losses—it reshapes money flows in your favor.


Metrics That Matter


Acronyms & Terms


References


Comments & Discussion

Share your thoughts, ask questions, or start a discussion about this article.