Ejemplo n.º 1
0
        public override string toXML(string country)
        {
            string        str           = ((!country.Equals("US")) ? "ach_debit" : "us_ach_debit");
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("<" + str + ">");
            stringBuilder.Append(toXML());
            if (achInfo != null)
            {
                stringBuilder.Append(achInfo.toXML());
            }
            if (custInfo != null)
            {
                stringBuilder.Append(custInfo.toXML());
            }
            if (recurInfo != null)
            {
                stringBuilder.Append(recurInfo.toXML());
            }
            if (convFeeInfo != null)
            {
                stringBuilder.Append(convFeeInfo.toXML());
            }
            stringBuilder.Append("</" + str + ">");
            return(stringBuilder.ToString());
        }
Ejemplo n.º 2
0
        public override string toXML(string country)
        {
            string        str           = ((!country.Equals("US")) ? "ach_credit" : "us_ach_credit");
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("<" + str + ">");
            stringBuilder.Append(toXML());
            if (achinfo != null)
            {
                stringBuilder.Append(achinfo.toXML());
            }
            stringBuilder.Append("</" + str + ">");
            return(stringBuilder.ToString());
        }