Class Payment
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about a payment method
[Serializable]
public class Payment
- Inheritance
-
Payment
- Inherited Members
Constructors
Payment()
Initializes a new instance of the Payment class.
public Payment()
Properties
Active
Gets or sets the value indicating whether instance is active.
public bool Active { get; set; }
Property Value
AllowAnonymousUsers
Gets or sets a value indicating whether the Payment is available to anonymous users.
public bool AllowAnonymousUsers { get; set; }
Property Value
- bool
trueif payment is available to anonymous users; otherwise,false.
CaptureObject
Gets the capture object.
public IRemoteCapture? CaptureObject { get; }
Property Value
- IRemoteCapture
The capture object.
CheckoutParameters
Gets or sets the checkout parameters.
public string? CheckoutParameters { get; set; }
Property Value
- string
The checkout parameters.
CheckoutSystemName
Gets or sets the system name of the checkout addIn .
public string? CheckoutSystemName { get; set; }
Property Value
- string
The system name of the checkout addIn.
Code
Gets or sets the code.
public string? Code { get; set; }
Property Value
DisableSavedCards
Gets or sets a value indicating whether the Saved Cards feature is enabled or disabled on the related checkout handler.
public bool DisableSavedCards { get; set; }
Property Value
Remarks
The related checkout handler should implement ISavedCard interface. Otherwise this property ignores.
GatewayId
Gets or sets the gateway ID.
public string? GatewayId { get; set; }
Property Value
- string
The gateway ID.
GatewayParameters
Gets or sets the gateway parameters.
public string? GatewayParameters { get; set; }
Property Value
- string
The gateway parameters.
Icon
Gets or sets the icon file name.
public string? Icon { get; set; }
Property Value
- string
The icon.
IconOrderList
Gets or sets the icon file name for order list.
public string? IconOrderList { get; set; }
Property Value
- string
The icon order list.
Id
Gets or sets the ID.
public string Id { get; set; }
Property Value
- string
The ID.
PaymentAddInType
Gets or sets the type of the addIn.
public PaymentAddInTypes PaymentAddInType { get; set; }
Property Value
- PaymentAddInTypes
The type of the addIn.
Sorting
Sort order of current group inside parent group's children collection
public int Sorting { get; set; }
Property Value
TermsCode
Gets or sets the payment terms code.
public string? TermsCode { get; set; }
Property Value
Translations
Gets the translations
public TranslationCollection<PaymentTranslation> Translations { get; }
Property Value
UserGroups
Gets or sets to whom user groups the payment is shown.
public IEnumerable<int> UserGroups { get; set; }
Property Value
Methods
Clone()
Clones this instance.
public Payment Clone()
Returns
GetDescription(string)
Gets the description of the payment for the given language.
public string? GetDescription(string languageId)
Parameters
languageIdstring
Returns
GetName(string)
Gets the name of the payment for the given language.
public string GetName(string languageId)
Parameters
languageIdstring
Returns
GetTermsDescription(string)
Gets the terms description of the payment for the given language.
public string? GetTermsDescription(string languageId)
Parameters
languageIdstring
Returns
SetDescription(string, string?)
Sets the description of the payment for the given language.
public void SetDescription(string languageId, string? description)
Parameters
SetName(string, string?)
Sets the name of the payment for the given language.
public void SetName(string languageId, string? name)
Parameters
SetTermsDescription(string, string?)
Sets the terms description of the payment for the given language.
public void SetTermsDescription(string languageId, string? termsDescription)