Dynamicweb.Ecommerce by Dynamicweb Software A/S

<PackageReference Include="Dynamicweb.Ecommerce" Version="1.9.44" />

.NET API 3,226,112 bytes

 Payment

public class Payment
Represents information about a payment method
public bool Active { get; set; }

Gets or sets the value indicating whether instance is active.

public bool AllowAnonymousUsers { get; set; }

Gets or sets a value indicating whether the Payment is available to anonymous users.

public IRemoteCapture CaptureObject { get; }

Gets the capture object.

public string CheckoutParameters { get; set; }

Gets or sets the checkout parameters.

public string CheckoutSystemName { get; set; }

Gets or sets the system name of the checkout addIn .

public string CountryId { get; set; }

Gets or sets the country ID.

public CountryRelation this[string theCountryId] { get; set; }

Gets or sets the country relation.

public CountryRelation CountryRelation { get; set; }

Gets or sets the country relation.

public string Description { get; set; }

Gets or sets the description.

public string GatewayId { get; set; }

Gets or sets the gateway ID.

public string GatewayParameters { get; set; }

Gets or sets the gateway parameters.

public string Icon { get; set; }

Gets or sets the icon file name.

public string IconImage { get; }

Gets the full path to icon image.

public string IconOrderList { get; set; }

Gets or sets the icon file name for order list.

public string Id { get; set; }

Gets or sets the ID.

public bool IsDefault { get; set; }

Gets or sets a value indicating whether this payment method is default.

public string LanguageId { get; set; }

Gets or sets the language ID.

public string Name { get; set; }

Gets or sets the payment name.

public PaymentAddInTypes PaymentAddInType { get; set; }

Gets or sets the type of the addIn.

public int Sorting { get; set; }

Sort order of current group inside parent group's children collection

public IEnumerable<int> UserGroups { get; set; }

Gets or sets to whom user groups the payment is shown.

public Payment()

Initializes a new instance of the Payment class.

public Payment(string paymentId)

Initializes a new instance of the Payment class from database by ID.

public Payment(string paymentId, string theLanguageId)

Initializes a new instance of the Payment class from database by key.

public Payment(IDataReader dataReader)

Initializes a new instance of the Payment class from data reader.

public static void ClearCache()

Clear cached payments

public static Payment GetDefaultPaymentMethod(string countryCode)

Gets the default payment method.

Gets the payment methods that has relation to any country.

public static PaymentCollection GetPaymentMethods(bool joinCountryRelations)

Gets the payment methods that has relation to any country, if joinCountryRelations parameter is true. Otherwise gets all pay methods.

public static PaymentCollection GetPaymentMethods(string countryCode)

Gets the payment methods with the suitable country code.

public static PaymentCollection GetPaymentMethods(string countryCode, string paymentIds)

Gets the payment methods with the suitable country code and pay method ID.

public static PaymentCollection GetPaymentMethods(string countryCode, string regionCode, string paymentIds)

Gets the payment methods with the suitable country code, region code and pay method ID.

public static PaymentCollection GetPaymethodsByRegion(string countryCode, string regionCode)

Gets the payment methods with the suitable country code AND region code.

public Payment Clone()

Clones this instance.

public Payment Copy()

Copies this instance.

public void Delete()

Deletes this payment.

public void Delete(string paymentId)

Deletes the payment with specified ID.

public void Delete(string paymentId, string theLanguageId)

Deletes the payment with specified ID and language

public void DeleteByLanguage(string theLanguageId)

Deletes items by language.

public void Save(string paymentId)

Saves payment. If payment with specified ID is exist, it will be overwritten

public void SetProperties()

Sets the default properties.