2025-03-28 09:49:56 +08:00

109 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
/*
* Project:
*
* Description:
* 商户接口范例。
*
* Modify Information:
* Author Date Description
* ============ ========== =======================================
* abchina 2017/04/11 V3.0.0
*
*/
-->
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void btnButton_Click(object sender, EventArgs e)
{
StringBuilder strMessage = new StringBuilder("");
//1、生成支付请求对象
com.abc.trustpay.client.ebus.QrySubCustomReviewStatus tMerchantInfo = new com.abc.trustpay.client.ebus.QrySubCustomReviewStatus();
//3、设置请求值
tMerchantInfo.merchantInfoRequest["SubCustomNo"] = txtSubCustomNo.Text;
tMerchantInfo.merchantInfoRequest["SerialNo"] = txtSerialNo.Text;
//4、传送请求并返回结果
tMerchantInfo.postJSONRequest();
String ReturnCode = JSON.GetKeyValue("ReturnCode");
String ErrorMessage = JSON.GetKeyValue("ErrorMessage");
if (ReturnCode.Equals("0000"))
{
//5、请求提交成功返回结果信息
strMessage.Append("ReturnCode = [" + ReturnCode + "]<br/>");
strMessage.Append("ErrorMessage = [" + ErrorMessage + "]<br/>");
strMessage.Append("MerchantNo = [" + JSON.GetKeyValue("MerchantID") + "]<br/>");
strMessage.Append("Account = [" + JSON.GetKeyValue("Account") + "]<br/>");
strMessage.Append("isPassed = [" + JSON.GetKeyValue("isPassed") + "]<br/>");
}
else
{
//6、请求提交失败商户自定后续动作
strMessage.Append("ReturnCode = [" + ReturnCode + "]<br/>");
strMessage.Append("ErrorMessage = [" + ErrorMessage + "]<br/>");
}
lblMessage.Text = strMessage.ToString();
}
protected void Page_Load(object sender, EventArgs e)
{
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>农行网上支付平台-商户接口范例-客户申请状态查询</title>
</head>
<script language="javascript">
function formatIndex(index) {
if (index < 10)
return "00" + index;
else if (index >= 10 && index < 100)
return "0" + index;
else
return index;
}
function submitFun() {
form1.submit();
}
</script>
<body style="font-size: 14px;">
<center>
客户申请状态查询
</center>
<form id="form1" runat="server">
<asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
<br />
<table>
<tr>
<td>二级客户编号</td>
<td>
<asp:TextBox runat="server" ID='txtSubCustomNo' value='zhanghh1234' />*必输</td>
</tr>
<tr>
<td>申请单号</td>
<td>
<asp:TextBox runat="server" ID='txtSerialNo' value='18ECEP01085931969003' />*必输</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnButton" runat="server" Text="提交" OnClick="btnButton_Click" /></td>
</tr>
</table>
</form>
<a href='Merchant.html'>回商户首页</a>
</body>
</html>