-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Hello, I have implement the REST API using this here . I am getting the response as expecting
{
acsUrl: 'https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&gold=AAAAAAAAAAAAAAAAAAAAAAA...',
pareq: 'eNpVkdtSwjAQhu/zFIzjdZ18=',
md: 'UFAHURXleGnAlycLuJ7jPNRPEXeX1W2i3A9TNUKnNGvcdjMTXN',
TermUrl: 'http://localhost:5001/card/callback'
}
And I am uing these here in this form (ejs)
<body>
<div class="loader" id="loader" style="display: none"></div>
<form id="acsform" action="<%= acsUrl %>" method="POST">
<input type="hidden" name="PaReq" value="<%= pareq %>">
<input type="hidden" name="TermUrl" value="<%= TermUrl %>">
<input type="hidden" name="MD" value="<%= md %>">
</form>
<script>
function showLoaderAndSubmitForm() {
document.getElementById("loader").style.display = "block";
setTimeout(function () {
document.getElementById("acsform").submit();
}, 1000); // Adjust the delay as needed
}
window.onload = showLoaderAndSubmitForm;
</script>
</body>
Results to this shown on this screenshot
But after entering the OTP I am getting this error:
What can be causing error?
Do you have any complete Javascript REST API sample code with 3DS authentication?
Metadata
Metadata
Assignees
Labels
No labels