Init 3DS

Init 3DS API is responsible for processing the customer's card payments with 3DS.

As like Its ancestor NON-3DS;

  • It supports transactions made with TROY, MASTERCARD, VISA, and AMEX branded cards.

  • For cards participating in installment programs such as BONUS, WORLD, MAXIMUM, AXESS, CARDFINANS, PARAF, and ADVANTAGE, the service allows options for 2, 3, 6, 9, and 12 installments.

  • Successful transactions are displayed in green, while failed transactions are displayed in red on the panel.

  • The merchant can utilize the conversationId and basketId parameters as order numbers on their side.

By incorporating these features, you can provide a seamless payment experience for your customers, with real-time feedback on the success or failure of their transactions.

Initialize 3DS Payment

post

Starts a 3D Secure session and returns an htmlContent value for 3DS authentication.

Header parameters
AuthorizationstringRequired

Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.

Example: IYZWSv2 aXBzaWduYXR1cmU...
Content-TypestringRequired

Content-Type value.

Example: application/json
Body
localestring · enumOptional

Language code. Default; tr

Example: enPossible values:
conversationIdstringOptional

Unique ID for request/response correlation.

Example: conversationId
pricedecimalRequired

Basket total amount.

Example: 1
paidPricedecimalRequired

Final amount to be charged to the customer.

Example: 1
currencystring · enumOptional

Currency. Default; TRY.

Example: TRYPossible values:
installmentinteger · enumOptional

Installment count (if omitted, a single installment is used).

Example: 1Possible values:
paymentChannelstring · enumOptional

Payment channel.

Example: WEBPossible values:
basketIdstringOptional

Basket ID.

Example: basketId
paymentGroupstring · enumOptional

Payment group. Default; PRODUCT.

Example: PRODUCTPossible values:
callbackUrlstringRequired

Redirect URL after 3DS flow completes.

Example: https://callbackurl.com
Responses
chevron-right
200

Successful response (3DS initialized)

application/json
statusstring · enumOptional

Result of the request.

Example: successPossible values:
localestringOptional

Response language (tr/en).

Example: en
systemTimeintegerOptional

Operation time (epoch ms).

Example: 1755197726218
conversationIdstringOptional

ID matching the request.

Example: conversationId
threeDSHtmlContentstringOptional

Base64-encoded HTML content of the 3DS verification screen.

Example: PCFkb2N0eXBlIGh0bWw+...
paymentIdstringOptional

Unique paymentId returned by iyzico.

Example: 25149157
signaturestringOptional

Signature value that can be used for verification.

Example: c8964a1878f9dae20741209dea6749d16bac4a8760775ae69b0b2420d9dc024b
post
/payment/3dsecure/initialize
HTTP

Sample Codes

Lastly analyzing following headlines, you can effectively handle and respond to the outcome of the payment inquiry, ensuring a smooth and reliable payment process for your customers.

  • The status parameter provides information about the status of the transaction. success indicates that the transaction has been successfully completed and the payment has been processed. failure indicates that the transaction has failed, and an error message related to the failure reason is provided.

  • The paymentStatus parameter is null for this service.

  • The paymentId and paymentTransactionId values should be stored for future reference and tracking.

  • In the event of a failed transaction (failure status), the errorCode, errorMessage, and errorGroup parameters will be returned with corresponding values, providing details about the error.

Last updated