Skip to main content

Autentikasi Pembayar 3DS

Data Request

NoNameTypeMandatoryMin LengthMax LengthDescription
1 cardObjectM17Detail of Card
2 transactionObjectM13Detail of Transaction

Sample Request

{
"card": {
"number": "5123450000000008",
"expiryDate": "3309",
"cvv": "100",
"nameOnCard": "Hajar Direct"
},
"transaction": {
"sessionId": "71d23ac71f7444633d8df40281bfc0dfa2175d8314aaaaa433fc8b56f5f0f61d"
}
}

Data Response

Sample Response 3DS2-Challenge Mode

{
"responseCode": "2000000",
"responseMessage": "Success",
"redirectHtml": "<div id=\"initiate3dsSimpleRedirect\" xmlns=\"http://www.w3.org/1999/html\"> <iframe id=\"methodFrame\" name=\"methodFrame\" height=\"100\" width=\"200\" > </iframe> <form id =\"initiate3dsSimpleRedirectForm\" method=\"POST\" action=\"https://ap.gateway.mastercard.com/acs/mastercard/v2/method\" target=\"methodFrame\"> <input type=\"hidden\" name=\"threeDSMethodData\" value=\"eyJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIjoiaHR0cHM6Ly9hcC5nYXRld2F5Lm1hc3RlcmNhcmQuY29tL2NhbGxiYWNrSW50ZXJmYWNlL2dhdGV3YXkvMDRiMzI1OTYxZmJkMjk4ZTYyZjcyYTQ5MjFiZDA4NjVjMTI3MzM4NDg2YzliY2E5YjNiMGY0NjQxNjgzYTMzNiIsInRocmVlRFNTZXJ2ZXJUcmFuc0lEIjoiNWNhMTVlYjAtNDQwOC00OWFmLWI2MDEtNTEwNjcxY2RlMjdiIn0=\" /> </form> <script id=\"initiate-authentication-script\"> var e=document.getElementById(\"initiate3dsSimpleRedirectForm\"); if (e) { e.submit(); if (e.parentNode !== null) { e.parentNode.removeChild(e); } } </script> </div>",
"threeDsInteraction": "challengemode",
"mpgsOrderId": "",
"mpgsTransactionId": "",
"processingTime": 1.3464319705963135
}

Sample Response 3DS2-Frictionless

{
"responseCode": "2000000",
"responseMessage": "Success",
"redirectHtml": "<div id=\"initiate3dsSimpleRedirect\" xmlns=\"http://www.w3.org/1999/html\"> <iframe id=\"methodFrame\" name=\"methodFrame\" height=\"100\" width=\"200\" > </iframe> <form id =\"initiate3dsSimpleRedirectForm\" method=\"POST\" action=\"https://ap.gateway.mastercard.com/acs/mastercard/v2/method\" target=\"methodFrame\"> <input type=\"hidden\" name=\"threeDSMethodData\" value=\"eyJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIjoiaHR0cHM6Ly9hcC5nYXRld2F5Lm1hc3RlcmNhcmQuY29tL2NhbGxiYWNrSW50ZXJmYWNlL2dhdGV3YXkvMDRiMzI1OTYxZmJkMjk4ZTYyZjcyYTQ5MjFiZDA4NjVjMTI3MzM4NDg2YzliY2E5YjNiMGY0NjQxNjgzYTMzNiIsInRocmVlRFNTZXJ2ZXJUcmFuc0lEIjoiNWNhMTVlYjAtNDQwOC00OWFmLWI2MDEtNTEwNjcxY2RlMjdiIn0=\" /> </form> <script id=\"initiate-authentication-script\"> var e=document.getElementById(\"initiate3dsSimpleRedirectForm\"); if (e) { e.submit(); if (e.parentNode !== null) { e.parentNode.removeChild(e); } } </script> </div>",
"threeDsInteraction": "frictionless",
"mpgsOrderId": "16656497711681000000000",
"mpgsTransactionId": "0fbe763c-4b2a-441b-871f-ae107b6f91a3",
"processingTime": 5.005392789840698
}