public override string toXML(string country) { string str = ((!country.Equals("US")) ? "purchase" : "us_purchase"); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append("<" + str + ">"); stringBuilder.Append(toXML()); if (!custInfo.IsEmpty()) { stringBuilder.Append(custInfo.toXML()); } if (recurInfo != null) { stringBuilder.Append(recurInfo.toXML()); } if (avsInfo != null) { stringBuilder.Append(avsInfo.toXML()); } if (cvdInfo != null) { stringBuilder.Append(cvdInfo.toXML()); } if (convFeeInfo != null) { stringBuilder.Append(convFeeInfo.toXML()); } stringBuilder.Append("</" + str + ">"); return(stringBuilder.ToString()); }
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()); }