Skip to content

Error on cardinal commerce - An unknown error has occurred on 3DS auth #70

Description

@sikaili99

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

Screenshot 2023-12-05 005941

But after entering the OTP I am getting this error:

Screenshot 2023-12-05 010100

What can be causing error?
Do you have any complete Javascript REST API sample code with 3DS authentication?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions