Click or drag to resize
ShippingAndPaymentValidator Class
Validates that selected shipping option and payment method are valid for given cart.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceShippingAndPaymentValidator

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

The ShippingAndPaymentValidator type exposes the following members.

Constructors
  NameDescription
Public methodShippingAndPaymentValidator
Initializes a new instance of the ShippingAndPaymentValidator class for given cart.
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.
Top
Methods
  NameDescription
Public methodValidate
Validates shipping and payment options associated with shopping cart.
Protected methodValidatePaymentAndShipping
Validates shipping and payment options associated with shopping cart.
Protected methodValidatePaymentOption
Validates payment option associated with shopping cart.
Protected methodValidateShippingOption
Validates shipping option associated with 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