Dynamicweb 8 Documentation
PaymentCollection Class
Members  Example 

Represents a collection of payment objects
Object Model
PaymentCollection ClassPayment Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    public String GetPaymentData() 
    {
        System.Text.StringBuilder payStr = new System.Text.StringBuilder();

        payStr.Append("<table>");

        PaymentCollection payments = Payment.getPaymethods();
        foreach( Payment pay in payments )
        {
            String checkedStr = "";
 
            if( pay.CountryRelation(countryID).IsDefault )
                checkedStr = "CHECKED";
            else
                checkedStr = "";
 
	           payStr.Append("<tr>");
            payStr.Append("<td><input type=""radio"" value=""" + pay.ID + """ " + checkedStr + ">" + pay.Name + " - " + pay.Description + "</td>");
            payStr.Append("</tr>");
        }

        payStr.Append("</table>")

        return payStr.ToString();
    }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Orders.PaymentCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PaymentCollection Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback