Auth 3DS
To retrieve the details of a transaction registered in iyzico, you can use the payment inquiry service.
The parameters that need to be sent to the service are as follows:
Finalizes the payment after successful 3D authentication.
Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.
IYZWSv2 aXBzaWduYXR1cmU...Content-Type value.
application/jsonLanguage code. Default; tr
enPossible values: Payment ID returned by the initialize call.
25149157Unique ID for request/response correlation.
conversationIdData posted by the 3DS result. If present, it must be sent.
Successful response (payment completed)
Invalid request / validation error
Sample Codes
Auth 3DS v2 Request - Advanced Data Protection
At iyzico, following the recent HMACSHA256 update, we launched the payment/v2/3dsecure/auth endpoint alongside the existing payment/3dsecure/auth endpoint. This endpoint is used to finalize registered 3D payments and retrieve details of the corresponding transactions by including the final amount charged to the customer’s card, its conversationId and paymentId.
With this, more reliable validation techniques can be used to complete the respective payment. As mentioned on the Response Signature Validation, the variables listed in the request table, returned as a result of the payment request, play a crucial role in this process.
As shown on the Response Signature Validation, when a signature is generated for the encrypted payload on both sides and these signatures are equal, the respective payment is successfully completed.
The parameters that need to be sent to the service are as follows:
After the verification step, both the v1 and the new-generation v2 endpoints can be used to finalize the payment. However, to align with more advanced and secure technologies, the use of the v2 endpoint is recommended.
Authorization header; a signed Base64-encoded hash that starts with IYZWSv2.
IYZWSv2 aXBzaWduYXR1cmU...Content-Type value.
application/jsonLanguage code. Default; tr
enPossible values: Payment ID returned after 3DS initialization.
25146302Unique ID for request/response correlation.
conversationIdCollected amount to be used in 3DS v2 completion. Must match the paidPrice sent in INIT 3DS.
1Basket ID (must match INIT 3DS basketId).
basketIdCurrency. Default; TRY (must match the value sent in INIT 3DS).
TRYPossible values: Successful response (payment completed)
Invalid request / validation error
Sample Codes
Auth 3DS vs Auth v2 3DS
The payment/3dsecure/auth endpoint employs the standard 3D Secure 1.0 protocol, offering basic authentication with a simpler structure, making it easier for legacy systems to integrate. In contrast, the payment/v2/3dsecure/auth endpoint is built on the more advanced 3D Secure 2.0 protocol, which enhances security through richer data points for risk analysis and smoother integration with modern systems. While payment/3dsecure/auth is a reliable option for basic transactions, payment/v2/3dsecure/auth offers superior security, improved user experience, and better compliance with evolving payment regulations. We recommend transitioning to payment/v2/3dsecure/auth for these benefits.
Last updated
