Class PaymentTypeCheckoutStepController

All Implemented Interfaces:
CheckoutStepController

@Controller @RequestMapping("/checkout/multi/payment-type") public class PaymentTypeCheckoutStepController extends AbstractCheckoutStepController
The type Payment type checkout step controller.
  • Constructor Details

    • PaymentTypeCheckoutStepController

      public PaymentTypeCheckoutStepController()
  • Method Details

    • getAllB2BPaymentTypes

      @ModelAttribute("paymentTypes") public Collection<B2BPaymentTypeData> getAllB2BPaymentTypes()
    • getVisibleActiveCostCenters

      @ModelAttribute("costCenters") public List<? extends B2BCostCenterData> getVisibleActiveCostCenters()
    • enterStep

      @RequestMapping(value="/choose", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Description copied from interface: CheckoutStepController
      Swapping the parameter order might break the validation aspect from working.
      Returns:
      returns the result for entering the checkout step
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • choose

      @RequestMapping(value="/choose", method=POST) public String choose(@ModelAttribute PaymentTypeForm paymentTypeForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException, de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • nextPage

      protected String nextPage(String paymentType)
      Redirects user to the next checkout page which is payment details
      Returns:
      payment details page or payment type page
    • updateCheckoutCart

      protected void updateCheckoutCart(PaymentTypeForm paymentTypeForm)
    • next

      @RequestMapping(value="/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating next
    • back

      @RequestMapping(value="/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating back
    • preparePaymentTypeForm

      protected PaymentTypeForm preparePaymentTypeForm(CartData cartData)
    • checkAndSelectDeliveryAddress

      protected void checkAndSelectDeliveryAddress(PaymentTypeForm paymentTypeForm)