Class PaymentDetailsPageController

Direct Known Subclasses:
SopPaymentResponseController

@Controller @RequestMapping("/my-account/my-payment-details") public class PaymentDetailsPageController extends AbstractCheckoutController
B2cTelco My Account Payment Details Controller.
  • Field Details

    • PAYMENT_DETAILS_CMS_PAGE

      protected static final String PAYMENT_DETAILS_CMS_PAGE
      See Also:
    • customerFacade

      protected de.hybris.platform.commercefacades.customer.CustomerFacade customerFacade
  • Constructor Details

    • PaymentDetailsPageController

      public PaymentDetailsPageController()
  • Method Details

    • getTitles

      @ModelAttribute("titles") public Collection<TitleData> getTitles()
    • getCountries

      @ModelAttribute("countries") public Collection<CountryData> getCountries()
    • 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()
    • beginAddPayment

      @RequestMapping(value="/add", method=GET) public String beginAddPayment(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
    • doEditPaymentDetails

      @RequestMapping(value="/edit", method=POST) public String doEditPaymentDetails(org.springframework.ui.Model model, @RequestParam("paymentInfoId") String paymentInfoId) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • editPaymentMethod

      @RequestMapping(value="/editPaymentMethod", method=POST) public String editPaymentMethod(@Valid @ModelAttribute("sopPaymentDetailsForm") @Valid SopPaymentDetailsForm form, org.springframework.validation.BindingResult bindingResult, @RequestParam("paymentInfoId") String paymentInfoId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getCountryAddressForm

      @RequestMapping(value="/edit/billingaddressform", method=GET) public String getCountryAddressForm(@RequestParam("countryIsoCode") String countryIsoCode, org.springframework.ui.Model model)
      Populate data for, and display the Billing address form. Copied and slightly modified from SopPaymentResponseController#getCountryAddressForm(String, boolean, Model)
      Parameters:
      countryIsoCode -
      paymentInfoId - the current paymentInfoId
      model -
      Returns:
      The billing address form view.
    • viewPaymentMethodSubscriptions

      @RequestMapping(value="/payment-method-subscriptions", method=GET) public String viewPaymentMethodSubscriptions(@RequestParam("paymentInfoId") String paymentMethodId, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • removePaymentMethod

      @RequestMapping(value="/remove", method=GET) public String removePaymentMethod(@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
    • paymentDetails

      @RequestMapping(method=GET) public String paymentDetails(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • setDefaultPaymentDetails

      @RequestMapping(value="/set-default", method=POST) public String setDefaultPaymentDetails(@RequestParam String paymentInfoId)
    • removePaymentMethod

      @RequestMapping(value="/remove", method=POST) public String removePaymentMethod(org.springframework.ui.Model model, @RequestParam("paymentInfoId") String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Remove the selected Payment Method.
      Parameters:
      model - The MAV model.
      paymentMethodId - The payment method Id.
      redirectAttributes - The Redirect Attributes object.
      Returns:
      The view @link REDIRECT_TO_PAYMENT_INFO_PAGE
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • changePaymentMethodForSubscriptions

      @RequestMapping(value="/change-payment-method-subscription", method=POST) public String changePaymentMethodForSubscriptions(@RequestParam("paymentInfoId") String oldPaymentMethodId, PaymentSubscriptionsForm paymentSubscriptionsForm, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • managePaymentMethod

      @RequestMapping(value="/manage", method=GET) public String managePaymentMethod(@RequestParam("paymentInfoId") String paymentMethodId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • 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, String clientIpAddress, CCPaymentInfoData ccPaymentInfoData)
    • getClientIpAddr

      protected String getClientIpAddr()
    • getSopResponseUrl

      protected String getSopResponseUrl()
      Get the Silent Order Post Response URL.
      Returns:
      The silent Order Post URL
    • hasNoPaymentInfo

      protected boolean hasNoPaymentInfo()
    • getSopCardTypes

      protected Collection<CardTypeData> getSopCardTypes()
    • createCardTypeData

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

      protected boolean hasItemsInCart()
      Checks if there are any items in the cart.
      Returns:
      returns true if items found in cart.
    • getSubscriptionFacade

      protected de.hybris.platform.subscriptionfacades.SubscriptionFacade getSubscriptionFacade()
    • getBaseSiteService

      protected de.hybris.platform.site.BaseSiteService getBaseSiteService()
      Overrides:
      getBaseSiteService in class AbstractPageController
    • getSiteBaseUrlResolutionService

      protected de.hybris.platform.acceleratorservices.urlresolver.SiteBaseUrlResolutionService getSiteBaseUrlResolutionService()
    • getAccountBreadcrumbBuilder

      protected ResourceBreadcrumbBuilder getAccountBreadcrumbBuilder()
    • getCreditCardFacade

      protected de.hybris.platform.subscriptionfacades.billing.CreditCardFacade getCreditCardFacade()
    • getPaymentFacade

      protected de.hybris.platform.acceleratorfacades.payment.PaymentFacade getPaymentFacade()
    • setPaymentFacade

      protected void setPaymentFacade(de.hybris.platform.acceleratorfacades.payment.PaymentFacade paymentFacade)
    • getSopResponseUrlStrategy

      protected SopResponseUrlStrategy getSopResponseUrlStrategy()
    • setSopResponseUrlStrategy

      public void setSopResponseUrlStrategy(SopResponseUrlStrategy sopResponseUrlStrategy)
    • getMyAccountPaymentDetailsView

      protected String getMyAccountPaymentDetailsView()
      Returns:
      the myAccountPaymentDetailsView
    • setMyAccountPaymentDetailsView

      public void setMyAccountPaymentDetailsView(String myAccountPaymentDetailsView)
      Parameters:
      myAccountPaymentDetailsView - the myAccountPaymentDetailsView to set
    • getMyAccountSopPaymentDetailsValidator

      protected SbgSopPaymentDetailsValidator getMyAccountSopPaymentDetailsValidator()
    • setMyAccountSopPaymentDetailsValidator

      public void setMyAccountSopPaymentDetailsValidator(SbgSopPaymentDetailsValidator myAccountSopPaymentDetailsValidator)
    • getTmaSubscribedProductFacade

      protected TmaSubscribedProductFacade getTmaSubscribedProductFacade()
    • setTmaSubscribedProductFacade

      public void setTmaSubscribedProductFacade(TmaSubscribedProductFacade tmaSubscribedProductFacade)
    • getTmaOrderEntryFacade

      protected TmaOrderEntryFacade getTmaOrderEntryFacade()
    • initBinder

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