Skip to Content
Docs

Merchant-initiated authentication

Authenticate merchant-initiated card payments with 3RI, and declare intended future usage with future_usage.

A merchant-initiated transaction (MIT) is a payment you start without the customer present, such as a subscription renewal. The customer authenticates the initial payment, and later payments reference it. When an issuer requires authentication for a subsequent payment, 3DS Requestor Initiated (3RI) authentication runs 3D Secure without the customer.

Set up a card for merchant-initiated payments

The initial payment saves the card for future charges that you start. Set source_data.setup_future_usage to off_session on that first payment. Pay.com marks it as the start of a merchant-initiated series and stores its network transaction ID on the saved pm_card_ payment method.

Mark subsequent payments as merchant-initiated by setting off_session: true on the charge. Pay.com also treats a saved-card charge as merchant-initiated when you omit browser details, three_ds, and any 3D Secure request options.

Merchant-initiated payments don't run interactive 3D Secure. For a card saved with another provider, pass its original network transaction ID in source_data.underlying_network_id alongside off_session: true. See Recurring charges.

Authenticate with 3RI

To run 3RI on a subsequent payment, set payment_method_options.authentication_options.type to three_ri and include the three_ri object.

FieldTypeDescription
indicatorstringAuthentication reason: recurring (default) or ucof (unscheduled card on file).
require_issuer_liability_shiftbooleanWhen true, Pay.com declines the payment if the 3RI result doesn't shift fraud liability to the issuer.

3RI requires data from the customer's original authentication. For a card saved through Pay.com, Pay.com reads it from the card's initial merchant-initiated payment if 3D Secure authenticated that payment. Otherwise, pass all four fields in source_data.source.three_ri:

FieldTypeDescription
acs_transaction_idstringThe access control server's transaction ID from the original authentication.
ds_transaction_idstringThe directory server's transaction ID from the original authentication.
authentication_flowstringOriginal authentication flow: frictionless or challenge.
date_timestringTimestamp of the original authentication in ISO 8601 format (for example, 2026-10-01T09:30:00Z).

This off-session charge runs 3RI with stored original authentication data. Amounts are in minor units, so 4900 is €49.00 EUR.

POST /v1/charges

{
  "amount": 4900,
  "currency": "eur",
  "off_session": true,
  "source_data": {
    "type": "source",
    "source": {
      "id": "pm_card_296645958265997316",
      "three_ri": {
        "acs_transaction_id": "f43f659d-f5b3-48ca-b375-cda2f7c51b8c",
        "ds_transaction_id": "6ee32fb8-b8d7-4ba8-9f85-ab8d4d59fa39",
        "authentication_flow": "challenge",
        "date_time": "2026-10-01T09:30:00Z"
      }
    }
  },
  "payment_method_options": {
    "authentication_options": {
      "type": "three_ri",
      "three_ri": {
        "indicator": "recurring",
        "require_issuer_liability_shift": true
      }
    }
  }
}

Pay.com declines a merchant-initiated payment requesting 3RI when original authentication data isn't available or when the processor doesn't support 3RI.

Set future usage when you authenticate a card

When authenticating a card with standalone 3DS, declare how you'll charge it later in authentication_options.future_usage. Set type to one of these values:

typeAdditional fieldsDescription
recurringrecurring.interval (day, month, or year), recurring.interval_count, and optional recurring.amountDeclares scheduled recurring billing.
instalmentinstallment.interval, installment.interval_count, and optional installment.number and installment.amountDeclares installment payments. Note the spelling difference between the type value (instalment) and the nested object name (installment).
card_on_fileNoneDeclares an unscheduled card-on-file agreement with no additional fields required.

This example declares a 6-month installment plan of €20.00 EUR per installment in authentication_options.future_usage on POST /v1/authentication/session/independent. Standalone 3DS always requires authentication_options.return_url, and a three_ds authentication also requires the customer's browser in three_ds.channel.

authentication_options (future_usage)

{
  "authentication_options": {
    "type": "three_ds",
    "return_url": "https://example.com/3ds-complete",
    "future_usage": {
      "type": "instalment",
      "installment": {
        "interval": "month",
        "interval_count": 1,
        "number": 6,
        "amount": 2000
      }
    },
    "three_ds": {
      "channel": {
        "type": "browser",
        "browser": {
          "customer_ip_address": "203.0.113.10",
          "browser_details": {
            "accept_header": "text/html,application/xhtml+xml",
            "javascript_enabled": true,
            "language": "en-US",
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
            "screen_width": 1440,
            "screen_height": 900,
            "timezone_offset": "-120",
            "java_enabled": false,
            "color_depth": 24
          }
        }
      },
      "flow_indicator": {
        "type": "frictionless"
      },
      "submit": "always"
    }
  }
}

Standalone 3DS also supports 3RI. Set authentication_options.type to three_ri, then set three_ri.indicator and three_ri.initial_authentication_info. Set initial_authentication_info.type to transaction with the initial charge ID in transaction.id, or to data with the four original authentication fields (acs_transaction_id, ds_transaction_id, authentication_flow, and date_time) in data:

authentication_options (standalone 3RI)

{
  "authentication_options": {
    "type": "three_ri",
    "return_url": "https://example.com/3ds-complete",
    "three_ri": {
      "indicator": "recurring",
      "initial_authentication_info": {
        "type": "transaction",
        "transaction": {
          "id": "chrg_296645958265997312"
        }
      }
    }
  }
}

Next steps

Was this page helpful?