Interface CheckoutStepValidator
- All Known Implementing Classes:
AbstractCheckoutStepValidator,DefaultDeliveryAddressCheckoutStepValidator,DefaultDeliveryMethodCheckoutStepValidator,DefaultMultiStepCheckoutStepValidator,DefaultPaymentCheckoutStepValidator,DefaultPickupCheckoutStepValidator,DefaultSummaryCheckoutStepValidator
public interface CheckoutStepValidator
-
Method Summary
Modifier and TypeMethodDescriptionvalidateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) This method should be implemented to validate whether all the required details are present before entering the checkout step.Does validation while transitioning from one CheckoutStep to another.
-
Method Details
-
validateOnEnter
ValidationResults validateOnEnter(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) This method should be implemented to validate whether all the required details are present before entering the checkout step.- Parameters:
redirectAttributes-- Returns:
- ValidationResults
-
validateOnExit
ValidationResults validateOnExit()Does validation while transitioning from one CheckoutStep to another. Usually used when we want to redirect to a completely different checkout step and override the default behaviour.- Returns:
- ValidationResults
-