/// <summary> /// 3.4 单笔付款结果查询 (根据银行返回的业务流水号) /// </summary> /// <param name="BussFlowNo"></param> /// <returns></returns> public static string KHKF04ResultBuss(string BussFlowNo) { string sdbYQAcctNo = PAConfigHelper.GetConfiguration("sdbYQAcctNo"); string postParams = "{0}"; StringBuilder sb = new StringBuilder(); sb.Append("<?xml version=\"1.0\" encoding=\"GBK\" ?><Result><AcctNo>"); sb.Append(sdbYQAcctNo); //企业签约帐号 sb.Append("</AcctNo>"); sb.Append("<OrderNumber>"); sb.Append(""); //20位订单号 sb.Append("</OrderNumber>"); //两者不能同时为空 只取上面一个的 BussFlowNo为空 sb.Append("<BussFlowNo>"); sb.Append(BussFlowNo); //银行业务流水号 sb.Append("</BussFlowNo>"); sb.Append("</Result>"); string KHKF04XML = string.Format(postParams, sb.ToString()); var str = YQHelp.asemblyYQPackets(YQCode, "KHKF04", KHKF04XML); var cc = PAHelper.NcPost(apiUrl, str); return(cc); }
/// <summary> /// 跨行快付 单笔 /// </summary> /// <returns></returns> public static string KHKF03(string InAcctNo, string InAcctName, string TranAmount, string OrderNumber) { string sdbYQAcctNo = PAConfigHelper.GetConfiguration("sdbYQAcctNo"); string sdbYQCorpId = PAConfigHelper.GetConfiguration("sdbYQCorpId"); string postParams = "{0}"; StringBuilder sb = new StringBuilder(); sb.Append("<?xml version=\"1.0\" encoding=\"GBK\" ?><Result><OrderNumber>"); sb.Append(OrderNumber); sb.Append("</OrderNumber>"); sb.Append("<AcctNo>"); sb.Append(sdbYQAcctNo); //企业签约帐号 sb.Append("</AcctNo>"); sb.Append("<BusiType>"); sb.Append("00000"); sb.Append("</BusiType>"); //sb.Append("<CorpId>"); //sb.Append(sdbYQCorpId);//单位代码 //sb.Append("</CorpId>"); sb.Append("<CcyCode>"); sb.Append("RMB"); sb.Append("</CcyCode>"); sb.Append("<TranAmount>"); sb.Append(TranAmount); sb.Append("</TranAmount>"); sb.Append("<InAcctNo>"); sb.Append(InAcctNo); sb.Append("</InAcctNo>"); sb.Append("<InAcctName>"); sb.Append(InAcctName); sb.Append("</InAcctName>"); sb.Append("</Result>"); string KHKF03XML = string.Format(postParams, sb.ToString()); var str = YQHelp.asemblyYQPackets(YQCode, "KHKF03", KHKF03XML); var cc = PAHelper.NcPost(apiUrl, str); return(cc); }