# Accept 3DSecure Payment

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

This endpoint is used to complete the 3DSecure payment process. Merchants should send the parameters received in the response from Step 1, along with additional required information, to finalise the 3DSecure enrollment with Fondy.

**POST** `/3dsecure_step2`

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

This endpoint is used to complete the 3DSecure payment process. Merchants should send the parameters received in the response from Step 1, along with additional required information, to finalize the 3DSecure enrollment with Fondy.

## 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.
  - `pareq` (string, required)
    The Payer Authentication Request (PaReq) parameter returned by the issuing bank to the specified URL after successful password verification. Required for completing the 3D Secure authentication flow.
  - `md` (string, required)
    A unique 3DSecure request ID generated by Fondy, used to track the transaction through the 3D Secure process.
  - `version` (string)
    The protocol version used for 3D Secure communication. Set to '1.0' by default to ensure compatibility.
  - `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.

Example:

```json
{
  "request": {
    "order_id": "ID1234",
    "merchant_id": 1,
    "pareq": "PaReq_content_from_bank",
    "md": "unique_3dsecure_request_id",
    "version": "1.0",
    "signature": "1773cf135bd89656131134b98637894dad42f808"
  }
}
```

## Responses

### 200

3DSecure payment completed successfully.

- `response` (object)
  Parameters of the final response
  - `order_id` (string)
    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)
    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.
  - `amount` (integer)
    Order amount in cents without separator.
  - `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")
    Currency for the transaction (e.g., GBP, EUR, USD). Refer to the [Currencies](doc:supported-currencies) page for a full list of available currencies.
  - `order_status` ("created" | "processing" | "declined" | "approved" | "expired" | "reversed")
    Order processing status indicating the current state of the transaction.
  - `response_status` (string)
    Request processing status (e.g., 'success' or 'failure').
  - `signature` (string)
    Order signature for request verification.
  - `tran_type` ("purchase" | "verification" | "p2p credit" | "p2p transfer" | "settlement" | "reverse")
  - `sender_cell_phone` (string)
    Customer's mobile phone number.
  - `sender_account` (string)
    Customer payment account.
  - `masked_card` (string)
    Masked card number.
  - `card_bin` (integer)
    First 6 digits of the card number.
  - `card_type` ("VISA" | "MasterCard")
  - `rrn` (string)
    Bank transaction ID, often not unique.
  - `approval_code` (string)
    Authorisation code returned by the bank.
  - `response_code` (integer)
    Order decline response code.
  - `response_description` (string)
    Description of the response code.
  - `reversal_amount` (integer)
    Total reversal amount for the current order.
  - `settlement_amount` (integer)
    Settlement amount for the current order.
  - `settlement_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")
    Currency for the transaction (e.g., GBP, EUR, USD). Refer to the [Currencies](doc:supported-currencies) page for a full list of available currencies.
  - `order_time` (string<date-time>)
    Order creation date in DD.MM.YYYY hh:mm:ss format.
  - `settlement_date` (string<date>)
    Settlement date in DD.MM.YYYY format.
  - `eci` (5 | 6 | 7)
    Ecommerce Indicator for 3DSecure authentication status.
  - `fee` (integer)
    Fee charged by Fondy.
  - `payment_system` (string)
    Payment system used for the transaction.
  - `sender_email` (string)
    Your customer's email address. Fondy will send an email regarding the payment to this address.
  - `payment_id` (integer)
    Unique payment ID generated by Fondy.
  - `actual_amount` (integer)
    Actual amount held or charged from the card.
  - `actual_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")
    Currency for the transaction (e.g., GBP, EUR, USD). Refer to the [Currencies](doc:supported-currencies) page for a full list of available currencies.
  - `product_id` (string)
    Merchant's product or service ID.
  - `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.
  - `verification_status` ("verified" | "incorrect" | "failed" | "created")
    Code verification result.
  - `rectoken` (string)
    Token for accessing card funds without cardholder interaction.
  - `rectoken_lifetime` (string<date-time>)
    Token expiration date in DD.MM.YYYY hh:mm:ss format.
  - `additional_info` (object)
    Additional information in JSON format.
    - `bank_name` (string)
      Bank name.
    - `bank_country` (string)
      Bank country.
    - `bank_response_code` (string)
      Response code from the bank.
    - `card_product` (string)
      Type of card product.
    - `card_category` (string)
      Category of the card.
    - `settlement_fee` (number)
      Settlement fee.
    - `capture_status` (string)
      Status of the capture.
    - `client_fee` (number)
      Fee charged to the client.
    - `ipaddress_v4` (string)
      IP address in IPv4 format.
    - `capture_amount` (integer)
      Amount captured.
    - `card_type` ("VISA" | "MasterCard")
      Type of the card used.
    - `reservation_data` (string)
      Reservation data.
    - `bank_response_description` (string)
      Description of the bank's response.
    - `transaction_id` (integer)
      Transaction ID from the bank.
    - `timeend` (string<date-time>)
      End time for the transaction.
    - `card_number` (string)
      Card number used.
    - `payment_method` ("apple" | "googlepay" | "card")
      Payment method used.

Example:

```json
{
  "response": {
    "order_id": "ORDER_12345678",
    "merchant_id": 1,
    "amount": 0,
    "currency": "AED",
    "order_status": "created",
    "response_status": "string",
    "signature": "string",
    "tran_type": "purchase",
    "sender_cell_phone": "string",
    "sender_account": "string",
    "masked_card": "string",
    "card_bin": 0,
    "card_type": "VISA",
    "rrn": "string",
    "approval_code": "string",
    "response_code": 0,
    "response_description": "string",
    "reversal_amount": 0,
    "settlement_amount": 0,
    "settlement_currency": "AED",
    "order_time": "1970-01-01T00:00:00.000Z",
    "settlement_date": "2024-01-01",
    "eci": 5,
    "fee": 0,
    "payment_system": "string",
    "sender_email": "string",
    "payment_id": 0,
    "actual_amount": 0,
    "actual_currency": "AED",
    "product_id": "string",
    "merchant_data": "string",
    "verification_status": "verified",
    "rectoken": "string",
    "rectoken_lifetime": "1970-01-01T00:00:00.000Z",
    "additional_info": {
      "bank_name": "string",
      "bank_country": "string",
      "bank_response_code": "string",
      "card_product": "string",
      "card_category": "string",
      "settlement_fee": 0,
      "capture_status": "string",
      "client_fee": 0,
      "ipaddress_v4": "string",
      "capture_amount": 0,
      "card_type": "VISA",
      "reservation_data": "string",
      "bank_response_description": "string",
      "transaction_id": 0,
      "timeend": "1970-01-01T00:00:00.000Z",
      "card_number": "string",
      "payment_method": "apple"
    }
  }
}
```