115 lines
4.1 KiB
Plaintext
115 lines
4.1 KiB
Plaintext
<!--
|
||
/*
|
||
* 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.EntrustQuerySign tMerchantInfo = new com.abc.trustpay.client.ebus.EntrustQuerySign();
|
||
|
||
//3、设置请求值
|
||
tMerchantInfo.merchantInfoRequest["SignNo"] = txtSignNo.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("MerchantID = [" + JSON.GetKeyValue("MerchantID") + "]<br/>");
|
||
strMessage.Append("TrxType = [" + JSON.GetKeyValue("TrxType") + "]<br/>");
|
||
strMessage.Append("MerchantNo = [" + JSON.GetKeyValue("MerchantNo") + "]<br/>");
|
||
strMessage.Append("SignNo = [" + JSON.GetKeyValue("SignNo") + "]<br/>");
|
||
strMessage.Append("AgentSignNo = [" + JSON.GetKeyValue("AgentSignNo") + "]<br/>");
|
||
strMessage.Append("CertificateNo = [" + JSON.GetKeyValue("CertificateNo") + "]<br/>");
|
||
strMessage.Append("CertificateType = [" + JSON.GetKeyValue("CertificateType") + "]<br/>");
|
||
strMessage.Append("Last4CardNo = [" + JSON.GetKeyValue("Last4CardNo") + "]<br/>");
|
||
strMessage.Append("SignDate = [" + JSON.GetKeyValue("SignDate") + "]<br/>");
|
||
strMessage.Append("UnSignDate = [" + JSON.GetKeyValue("UnSignDate") + "]<br/>");
|
||
strMessage.Append("InvaidDate = [" + JSON.GetKeyValue("InvaidDate") + "]<br/>");
|
||
strMessage.Append("AgentSignStatus = [" + JSON.GetKeyValue("AgentSignStatus") + "]<br/>");
|
||
strMessage.Append("AccountType = [" + JSON.GetKeyValue("AccountType") + "]<br/>");
|
||
strMessage.Append("SubMerchantNo = [" + JSON.GetKeyValue("SubMerchantNo") + "]<br/>");
|
||
strMessage.Append("SignChannel = [" + JSON.GetKeyValue("SignChannel") + "]<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='txtSignNo' value='SignNo' />*必输</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>
|