Class PaymentMethodCheckoutStepController

    • Field Detail

      • CYBERSOURCE_SOP_CARD_TYPES

        protected static final java.util.Map<java.lang.String,​java.lang.String> CYBERSOURCE_SOP_CARD_TYPES
    • Constructor Detail

      • PaymentMethodCheckoutStepController

        public PaymentMethodCheckoutStepController()
    • Method Detail

      • getBillingCountries

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

        @ModelAttribute("cardTypes")
        public java.util.Collection<CardTypeData> getCardTypes()
      • enterStep

        @RequestMapping(value="/add",
                        method=GET)
        public java.lang.String enterStep​(org.springframework.ui.Model model,
                                          org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                   throws 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:
        CMSItemNotFoundException
      • checkPaymentSubscription

        protected boolean checkPaymentSubscription​(org.springframework.ui.Model model,
                                                   @Valid
                                                   @Valid PaymentDetailsForm paymentDetailsForm,
                                                   CCPaymentInfoData newPaymentSubscription)
      • remove

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

        @RequestMapping(value="/choose",
                        method=GET)
        public java.lang.String doSelectPaymentMethod​(@RequestParam("selectedPaymentMethodId")
                                                      java.lang.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 java.lang.String back​(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
        Returns:
        checkoutstep link for navigating back
      • next

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

        protected CardTypeData createCardTypeData​(java.lang.String code,
                                                  java.lang.String name)
      • setupSilentOrderPostPage

        protected void setupSilentOrderPostPage​(SopPaymentDetailsForm sopPaymentDetailsForm,
                                                org.springframework.ui.Model model)
      • getSopCardTypes

        protected java.util.Collection<CardTypeData> getSopCardTypes()
      • getCheckoutStep

        protected CheckoutStep getCheckoutStep()