Exemplo n.º 1
0
 /// <summary>
 /// 获取支付接口的xml配置信息
 /// </summary>
 /// <param name="interfacetype">接口类型</param>
 /// <param name="tradeID">交易编号</param>
 /// <returns>返回xml配置信息</returns>
 internal static string GetInterfaceXmlConfig(PayInterfaceType interfacetype, string tradeID)
 {
     if (_Config != null)
     {
         return(_Config.GetInterfaceXmlConfig(interfacetype, tradeID));
     }
     return(null);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 获取支付接口的xml配置信息
        /// </summary>
        /// <param name="interfacetype">接口类型</param>
        /// <param name="tradeID">交易编号</param>
        /// <returns>返回xml配置信息</returns>
        internal static string GetInterfaceXmlConfig(PayInterfaceType interfacetype, string tradeID)
        {
            if (_Config == null)
            {
                throw new Exception("请先调用PayFactory.Enable配置支付环境");
            }

            return(_Config.GetInterfaceXmlConfig(interfacetype, tradeID));
        }