# Enroll Card in 3DSecure Service

> For the complete documentation index, see [llms.txt](https://docs.fondy.io/llms.txt).

This endpoint enables PCIDSS-compliant merchants to enroll a card in the 3DSecure service. By enrolling the card, the merchant initiates the 3DSecure verification process, adding an extra layer of authentication for online purchases. This service is only available to merchants who comply with PCI DSS (Payment Card Industry Data Security Standard) requirements.

**POST** `/3dsecure_step1`

Base URL: `https://pay.fondy.eu/api`

This endpoint enables PCIDSS-compliant merchants to enroll a card in the 3DSecure service. By enrolling the card, the merchant initiates the 3DSecure verification process, adding an extra layer of authentication for online purchases. This service is only available to merchants who comply with PCI DSS (Payment Card Industry Data Security Standard) requirements.

## Header parameters

- `Content-Type` (string, required)
  Specifies the format for the request. Response will be in the same format.

## Body

Content type: `application/json`

- `request` (object)
  - `order_id` (string, required)
    A unique identifier for the order. This can be any value defined by the merchant, allowing you to use any internal order identification system your business employs.
  - `merchant_id` (integer, required)
    A unique identifier assigned to the merchant by Fondy upon account registration. This ID is required for authenticating requests and associating transactions with the merchant's account.
  - `order_desc` (string, required)
    Detailed description of the order in UTF-8 encoding, viewable by the customer and included in payment records.
  - `signature` (string, required)
    Signature for request verification, generated according to Fondy’s algorithm. Required to verify merchant request consistency and authenticity.
    Learn how to use Fondy’s algorithm at the [Signature Generation for Request and Response](doc:signatures) page.
  - `amount` (integer, required)
    Total amount for the order, specified in minor units (e.g., cents), without decimal separators. For example, 1020 represents 10.20 in the currency’s base unit.
  - `currency` ("AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LTL" | "LVL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "STD" | "SVC" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWD", required)
    Currency for the transaction (e.g., GBP, EUR, USD). Refer to the [Currencies](doc:supported-currencies) page for a full list of available currencies.
  - `card_number` (string, required)
    The customer’s Visa or MasterCard number used for the transaction.
  - `cvv2` (string, required)
    The card’s CVV2 or CVC2 security code, typically found on the back of the card.
  - `expiry_date` (string, required)
    The card’s expiry date in MMYY format, where MM is the month and YY is the year.
  - `client_ip` (string, required)
    The IP address of the client initiating the transaction, used for fraud prevention and security.
  - `version` (string)
    Specifies the API protocol version. Use version '1.0.1' for compatibility with additional information in callbacks.
  - `server_callback_url` (string)
    URL for server-to-server callback post payment. See [Receiving Callbacks](doc:callbacks) for more details on callbacks.
  - `lifetime` (integer)
    The lifetime of the order in seconds, defining how long the order remains valid. Defaults to 600 seconds, with a maximum of 69120000 seconds (8 days).
  - `merchant_data` (string)
    Custom data provided by the merchant in the request. You can include any arbitrary string data relevant to your business needs, such as user IDs, session information, or notes. The data must be in string format and must not contain the '|' (pipe) character.
  - `preauth` ("Y" | "N")
    Pre-authorisation parameter for Visa/MasterCard payments to determine the timing of the charge.
  - `sender_email` (string)
    Your customer's email address. Fondy will send an email regarding the payment to this address.
  - `descriptor` (string)
    Dynamic transaction descriptor that appears on the customer’s bank statement to indicate transaction details.
  - `lang` ("az" | "cs" | "da" | "de" | "en" | "es" | "fi" | "fr" | "hu" | "it" | "ka" | "ko" | "lv" | "nl" | "pl" | "ro" | "ru" | "sk" | "uk" | "zh")
    Specifies the main language displayed to users during the payment process. Refer to the [Language Support](doc:checkout-language) page for more details.
  - `product_id` (string)
    Merchant-specific product or service identifier associated with the order.
  - `verification` ("Y" | "N")
    Indicates whether Fondy should automatically reverse the payment after a successful approval, primarily used for card verification. Refer to the [Verification](doc:card-verification-guide) guide for more information.
  - `container` (string)
    Google or Apple Pay encrypted data in BASE64 format for secure card information transmission.

Example:

```json
{
  "request": {
    "order_id": "ORDER_12345678",
    "merchant_id": 1,
    "order_desc": "Hotel booking №1234 Antalia Resort",
    "signature": "1773cf135bd89656131134b98637894dad42f808",
    "amount": 1020,
    "currency": "AED",
    "card_number": "string",
    "cvv2": "string",
    "expiry_date": "string",
    "client_ip": "string",
    "version": "1.0.1",
    "server_callback_url": "http://site.com/callbackurl",
    "lifetime": 600,
    "merchant_data": "string",
    "preauth": "N",
    "sender_email": "string",
    "descriptor": "string",
    "lang": "en",
    "product_id": "string",
    "verification": "N",
    "container": "ewogICJhcGlWZXJzaW9uTWlub3IiOiAwLAogICJhcGlWZXJzaW9uIjogMiw..."
  }
}
```

## Responses

### 200

Card enrolled in 3DSecure service

- `response` (object)
  - `response_status` (string)
    If no error occurred, this field always returns 'success'.
  - `acs_url` (string)
    URL of the cardholder's issuing bank's Access Control Server, where the customer must enter the 3DSecure password.
  - `pareq` (string)
    Parameter which must be submitted to `acs_url`.
  - `md` (string)
    Unique 3DSecure request ID generated by Fondy payment gateway.

Example:

```json
{
  "response": {
    "response_status": "success",
    "acs_url": "https://pay.fondy.eu/checkout?token=e0a5d4f331806d1e2feb80353b4c44bf6751fc8c",
    "pareq": "PaReq_content_here",
    "md": "unique_3dsecure_request_id"
  }
}
```