【问题标题】:PayU android SDk throwing error Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObjectPayU android SDK 抛出错误 Value <!DOCTYPE of type java.lang.String 无法转换为 JSONObject
【发布时间】:2016-05-27 13:44:08
【问题描述】:

我已经在我的应用程序中集成了 PayU SDK,这在测试环境中运行良好,但在生产环境中无法运行。

我收到了这个错误,它破坏了流程

价值

我也从服务器调试了哈希值,但没有帮助。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Error</title>
<link rel="shortcut icon" type="image/ico"   href="https://static.payu.in/images/favicon.png" />
<link href="https://static.payu.in/css/main.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
      <link rel="stylesheet" type="text/css" href="css/ie6.css" />
<![endif]-->
<style type="text/css"></style></head>

        <div id="header" class="clearfix">
                <div
    class="logo" >  
</div>
    </div>

<div id="container">
    <div class="paymentDetailsDiv">
        <div class="paymentDetailsHeading">An Error Occurred</div>
        <div class="paymentDetails">
            <div class="payby"></div>
            <div class="card-bg-top"></div>
            <div class="card-bg-mid">
                <div id="visamaster-container"></div>
                <div
                    style="font-size: 22px; font-weight: normal; margin-top: 15px; clear: both">
                    <h4 align="center">
                        <strong> <span style="color: #FF6600">Sorry, Some Problem
                                Occurred.</span>
                        </strong>
                    </h4>
                </div>
            </div>
            <div class="card-bg-bottom"></div>
            <div>
                <span style="font-size: 15px;">                                                                     </span>
            </div>
        </div>

    </div>
</div>

感谢任何帮助。

【问题讨论】:

  • 这是因为 Payu 正在返回 HTML,可能是错误消息。例如,当您使用 symfony 给出错误时,它会返回带有错误的 html。尝试阅读 HTML。
  • 嗯,“支付网关”不会以 JSON 格式返回错误响应。我有时想知道,这么蹩脚的支付网关怎么这么受欢迎。
  • Payu是最差的。

标签: android payment-gateway payu


【解决方案1】:

targetSdkVersion 25 出现此错误,但 targetSdkVersion 23 工作正常

【讨论】:

  • 此问题的任何其他替代方案,因为我认为我们仍然无法使用 targetSdkVersion 23 发布应用程序?
猜你喜欢
  • 2016-11-24
  • 2016-12-25
  • 2014-03-20
  • 1970-01-01
  • 1970-01-01
  • 2013-09-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多