Enroll Card in 3DSecure Service

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

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-Typestringrequired

Specifies the format for the request. Response will be in the same format.

Body application/json

requestobject
Show request properties
order_idstringrequired

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_idintegerrequired

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_descstringrequired

Detailed description of the order in UTF-8 encoding, viewable by the customer and included in payment records.

signaturestringrequired

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 page.

amountintegerrequired

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 page for a full list of available currencies.

card_numberstringrequired

The customer’s Visa or MasterCard number used for the transaction.

cvv2stringrequired

The card’s CVV2 or CVC2 security code, typically found on the back of the card.

expiry_datestringrequired

The card’s expiry date in MMYY format, where MM is the month and YY is the year.

client_ipstringrequired

The IP address of the client initiating the transaction, used for fraud prevention and security.

versionstring

Specifies the API protocol version. Use version ‘1.0.1’ for compatibility with additional information in callbacks.

server_callback_urlstring

URL for server-to-server callback post payment. See Receiving Callbacks for more details on callbacks.

lifetimeinteger

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_datastring

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_emailstring

Your customer’s email address. Fondy will send an email regarding the payment to this address.

descriptorstring

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 page for more details.

product_idstring

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 guide for more information.

containerstring

Google or Apple Pay encrypted data in BASE64 format for secure card information transmission.

Response

Card enrolled in 3DSecure service

responseobject
Show response properties
response_statusstring

If no error occurred, this field always returns ‘success’.

acs_urlstring

URL of the cardholder’s issuing bank’s Access Control Server, where the customer must enter the 3DSecure password.

pareqstring

Parameter which must be submitted to acs_url.

mdstring

Unique 3DSecure request ID generated by Fondy payment gateway.

Request
curl -X POST "https://pay.fondy.eu/api/3dsecure_step1" \
  -H "Content-Type: application/json" \
  -H "Content-Type: <Content-Type>" \
  -d '{
  "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..."
  }
}'
Response
{
  "response": {
    "response_status": "success",
    "acs_url": "https://pay.fondy.eu/checkout?token=e0a5d4f331806d1e2feb80353b4c44bf6751fc8c",
    "pareq": "PaReq_content_here",
    "md": "unique_3dsecure_request_id"
  }
}