日期:2014-05-18  浏览次数:20945 次

工商银行支付接口开发
现在在开发工商银行支付接口的时候出现了这样一个问题:我点击提交按钮时,工商银行则提示如下:信息代码:96112036

提示信息:对不起,系统报错,信息处理失败。

源程序如下:
<%@ Page Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.Security" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Web.UI.WebControls.WebParts" %>
<%@ Import Namespace="System.Web.UI.HtmlControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
   
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>工商银行在线支付</title>
  <meta http-equiv="content-type" content="text/html;charset=GBK" />
</head>
<body>
  <div>
  <%
  string order = "https://mybank.dccnet.com.cn/servlet/ICBCINBSEBusinessServlet";//工商银行提交地址
  string interfaceName = "ICBC_PERBANK_B2C";
  string interfaceVersion = "1.0.0.3";
  //以下是Order Infomation
  string orderDate=DateTime.Now.ToString("yyyyMMddhhmmss");
  string orderID="20070725105014-2134062548";
  string amount="20";
  string curType="001";//人民币
  string merID = "0200EC20006972";
  string merAcct = "0200004519000100173";
  string merCert = "";//证书公钥
  //以下是Custom Information
  string verifyJoinFlag="1";
  string language="ZH_CN";
   
  //以下是Goods Information
  string goodsID="001";
  string goodsName="abc";
  string goodsNum="2";
  string carriageAmt="20";
  string merHint="efa";
  string remark1="";
  string remark2="";
  string merURL="http://www.bjetc.cn";
  string merVAR="test";
  string transData="<?xml version="+"\"1.0\""+" encoding="+"\"GBK\""+" standalone="+"\"no\" ?><B2CReq><interfaceName>"+interfaceName+"</interfaceName><interfaceVersion>"+interfaceVersion+"</interfaceVersion><orderInfo><orderDate>"+orderDate+"</orderDate><orderid>"+orderID+"</orderid><amount>"+amount+"</amount><curType>"+curType+"</curType><merID>"+merID+"</merID><merAcct>"+merAcct+"</merAcct></orderInfo><custom><verifyJoinFlag>"+verifyJoinFlag+"</verifyJoinFlag><Language>"+language+"</Language></custom><message><goodsID>"+goodsID+"</goodsID><goodsName>"+goodsName+"</goodsName><goodsNum>"+goodsNum+"</goodsNum><carriageAmt>"+carriageAmt+"</carriageAmt><merHint>"+merHint+"</merHint><remark1>"+remark1+"</remark1><remark2>"+remark2+"</remark2><merURL>&quo