Dynamicweb 8 Documentation
Payment Class
Members  Example 

Represents information about a payment method
Object Model
Payment ClassCountryRelation Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class Payment 
[SerializableAttribute()] 
public class Payment 
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
   Dynamicweb.eCommerce.Orders.Payment

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

Payment Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback