【问题标题】:Card payment error 508 -Realex payments error number: 61,754卡支付错误 508 -Realex 支付错误号:61,754
【发布时间】:2020-06-26 12:46:55
【问题描述】:

我正在使用带有 iframe 的 realex 付款 我可以正确加载付款页面,但只要我点击“立即付款” 它返回错误:508 消息:处理您的请求时发生错误。请联系您购买商品或服务的商家,并提供以下错误号:61,754 (大多数时候它会返回正确的响应字符串,要么成功要么被拒绝),但有时它会返回上面的错误代码) 知道什么是意思以及如何解决这个问题吗?

    <script type='text/javascript'>       
        
        function iRedirect(redirectUrl, arg, value) {
           
            console.log(redirectUrl);
            try {
                var form = $('<form action="' + redirectUrl + '" method="post">' +
                    '<input type="hidden" name="' + arg + '" value="' + value + '"></input>' + '</form>');
                $('body').append(form);
                console.log(form);
                $(form).submit();
            }
            catch (e) {
                alert(e.message);
            }
         }

         function displayMessage(evt)
         {
               
             var message;
              
             try {
                 var iOrigin = '<%=ConfigurationManager.AppSettings["RealexResponseDomain"] %>';
                 if (evt.origin == iOrigin) {

                     message = evt.data.toString();
                     console.log(message);
                     if (message.indexOf("Error") == 0) {
                         var ErrorJsonStr = message.toString().split(":");
                         var ErrorJsonStr1 = ErrorJsonStr[1].split("<BR>");
                         var reDirectPath = "{\"" + ErrorJsonStr[0] + "\"" + ":" + "\"" + ErrorJsonStr1[0] + "\"" + "," + "\"" + ErrorJsonStr1[1] + "\"" + ":" + "\"" + ErrorJsonStr[2] + "\"" + "}";
                        
                         iRedirect("Response.aspx", "JsonStr", encodeURIComponent(reDirectPath));
                     }
                     else {
                         if (isJson(message) == true) {

                             var message1 = JSON.parse(message);
                             //alert(message1);
                              console.log(message1);
                             if (message1.hasOwnProperty('pas_uuid')) {
                                 iRedirect("Response.aspx", "JsonStr", encodeURIComponent(message.toString()));
                             }
                             else {
                                 //check if this transaction is already exist
                                 //do redirect
                                 //alert("not pas_uuid" + message1);
                                 console.log("not pas_uuid" + message1);
                             }
                         }
                     }
                     //get message and check result
                 }
                 else {
                     console.log("not data");
                 }
             }
            
             catch (err) {
                  console.log(err.message);
                
             }
         }

         function isJson(str) {
             try {
                 JSON.parse(str);
             }
             catch (e)
             {
                 console.log(e.message);
                 return false;
             }
             return true;
         }
            
          if (window.addEventListener) {
             // For standards-compliant web browsers
             window.addEventListener("message", displayMessage, false);
         }
         else {
             window.attachEvent("onmessage", displayMessage);
         }

         
    </script>

【问题讨论】:

    标签: realex-payments-api global-payments-api


    【解决方案1】:

    此消息可能会在两种主要情况下显示在 HPP 上。

    1. HPP 沙盒环境存在临时问题。

    2. 您使用的商家 ID 和帐户启用了 3D Secure 1,但您使用了未启用 3D Secure 的测试卡。

    如果您认为不是这两个问题,请向我们的支持团队提供发生这种情况的交易的示例订单 ID,他们将能够更详细地查看日志。

    【讨论】:

      猜你喜欢
      • 2016-02-25
      • 2014-07-31
      • 2015-03-20
      • 2016-05-14
      • 1970-01-01
      • 2019-06-27
      • 2016-04-02
      • 2015-04-22
      • 2019-01-31
      相关资源
      最近更新 更多