Class PaymentMethodCheckoutStepController

All Implemented Interfaces:
CheckoutStepController
Direct Known Subclasses:
HopPaymentResponseController, SopPaymentResponseController

@Controller @RequestMapping("/checkout/multi/payment-method") public class PaymentMethodCheckoutStepController extends AbstractCheckoutStepController
  • Field Details

  • Constructor Details

    • PaymentMethodCheckoutStepController

      public PaymentMethodCheckoutStepController()
  • Method Details

    • getBillingCountries

      @ModelAttribute("billingCountries") public Collection<CountryData> getBillingCountries()
    • getCardTypes

      @ModelAttribute("cardTypes") public Collection<CardTypeData> getCardTypes()
    • getMonths

      @ModelAttribute("months") public List<AbstractCheckoutController.SelectOption> getMonths()
    • getStartYears

      @ModelAttribute("startYears") public List<AbstractCheckoutController.SelectOption> getStartYears()
    • getExpiryYears

      @ModelAttribute("expiryYears") public List<AbstractCheckoutController.SelectOption> getExpiryYears()
    • getCurrentClientIpAddress

      protected String getCurrentClientIpAddress()
      Required to initiate a subscription facade call.
      Returns:
    • enterStep

      @RequestMapping(value="/add", 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
      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
    • setupNonHopSopPage

      protected void setupNonHopSopPage(org.springframework.ui.Model model)
    • setupHopPage

      protected void setupHopPage(org.springframework.ui.Model model)
    • add

      @RequestMapping(value="/add", method=POST) public String add(org.springframework.ui.Model model, PaymentDetailsForm paymentDetailsForm, org.springframework.validation.BindingResult bindingResult) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • createAddressData

      protected AddressData createAddressData(PaymentDetailsForm paymentDetailsForm)
    • populatePaymentDetails

      protected CCPaymentInfoData populatePaymentDetails(PaymentDetailsForm paymentDetailsForm)
    • remove

      @RequestMapping(value="/remove", method=POST) public String remove(@RequestParam("paymentInfoId") String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doSelectPaymentMethod

      @RequestMapping(value="/choose", method=GET) public String doSelectPaymentMethod(@RequestParam("selectedPaymentMethodId") String selectedPaymentMethodId)
      This method gets called when the "Use These Payment Details" button is clicked. It sets the selected payment method on the checkout facade and reloads the page highlighting the selected payment method.
      Parameters:
      selectedPaymentMethodId - - the id of the payment method to use.
      Returns:
      - a URL to the page to load.
    • back

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

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

      protected CardTypeData createCardTypeData(String code, String name)
    • setupAddPaymentPage

      protected void setupAddPaymentPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • setupSilentOrderPostPage

      protected void setupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model) throws de.hybris.platform.subscriptionfacades.exceptions.SubscriptionFacadeException
      Throws:
      de.hybris.platform.subscriptionfacades.exceptions.SubscriptionFacadeException
    • initialiseSubscriptionTransaction

      protected void initialiseSubscriptionTransaction(PaymentData silentOrderPageData) throws de.hybris.platform.subscriptionfacades.exceptions.SubscriptionFacadeException
      Parameters:
      silentOrderPageData -
      Throws:
      de.hybris.platform.subscriptionfacades.exceptions.SubscriptionFacadeException
    • getSopCardTypes

      protected Collection<CardTypeData> getSopCardTypes()
    • getCheckoutStep

      protected CheckoutStep getCheckoutStep()
    • getSubscriptionFacade

      protected de.hybris.platform.subscriptionfacades.SubscriptionFacade getSubscriptionFacade()
      Returns:
      the subscriptionFacade
    • setSubscriptionFacade

      protected void setSubscriptionFacade(de.hybris.platform.subscriptionfacades.SubscriptionFacade subscriptionFacade)
      Parameters:
      subscriptionFacade - the subscriptionFacade to set
    • getTmaOrderEntryFacade

      protected TmaOrderEntryFacade getTmaOrderEntryFacade()
    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)