Click or drag to resize
PaymentOptionValidator Class
Performs validation of a payment option to be assigned to a shopping cart.
Inheritance Hierarchy
SystemObject
  CMS.EcommercePaymentOptionValidator

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
public class PaymentOptionValidator : IValidator

The PaymentOptionValidator type exposes the following members.

Constructors
  NameDescription
Public methodPaymentOptionValidator
Initializes a new instance of the PaymentOptionValidator class.
Top
Properties
  NameDescription
Public propertyCart
Gets shopping cart this validator was initialized for.
Public propertyErrors
Gets an enumeration of validation errors associated with this validator. An empty enumeration is returned if validation succeeded.
Public propertyIsValid
Gets a value indicating whether validation succeeded.
Public propertyPaymentOption
Gets payment option this validator was initialized for.
Top
Methods
  NameDescription
Public methodValidate
Validates whether a payment option can be associated with the shopping cart.
Protected methodValidatePaymentOption
Validates that payment option is: not null, assigned to the same site as the shopping cart or payment option is a global object, applicable to the shopping cart.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsTValidatorError
Returns a value indicating whether a validation error of type TValidatorError is in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodFirstErrorType
Returns Type of the first validation error in Errors.
(Defined by IValidatorExtensions.)
Public Extension MethodGetErrorMessages
Returns collection of localized error messages that occurred during validation.
(Defined by IValidatorExtensions.)
Top
See Also