Class PaymentDetailsPageController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
de.hybris.platform.b2ctelcoaddon.controllers.pages.myaccount.PaymentDetailsPageController
- Direct Known Subclasses:
SopPaymentResponseController
@Controller
@RequestMapping("/my-account/my-payment-details")
public class PaymentDetailsPageController
extends AbstractCheckoutController
B2cTelco My Account Payment Details Controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
AbstractCheckoutController.SelectOptionNested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.hybris.platform.commercefacades.customer.CustomerFacadeprotected static final StringFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
REDIRECT_URL_ORDER_CONFIRMATIONFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeginAddPayment(org.springframework.ui.Model model) changePaymentMethodForSubscriptions(String oldPaymentMethodId, PaymentSubscriptionsForm paymentSubscriptionsForm, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected CardTypeDatacreateCardTypeData(String code, String name) doEditPaymentDetails(org.springframework.ui.Model model, String paymentInfoId) editPaymentMethod(@Valid SopPaymentDetailsForm form, org.springframework.validation.BindingResult bindingResult, String paymentInfoId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected ResourceBreadcrumbBuilderprotected de.hybris.platform.site.BaseSiteServiceprotected StringgetCountryAddressForm(String countryIsoCode, org.springframework.ui.Model model) Populate data for, and display the Billing address form.protected de.hybris.platform.subscriptionfacades.billing.CreditCardFacadeprotected Stringprotected SbgSopPaymentDetailsValidatorprotected de.hybris.platform.acceleratorfacades.payment.PaymentFacadeprotected de.hybris.platform.acceleratorservices.urlresolver.SiteBaseUrlResolutionServiceprotected Collection<CardTypeData>protected StringGet the Silent Order Post Response URL.protected SopResponseUrlStrategyprotected de.hybris.platform.subscriptionfacades.SubscriptionFacadeprotected TmaOrderEntryFacadeprotected TmaSubscribedProductFacadeprotected booleanChecks if there are any items in the cart.protected booleanvoidinitBinder(org.springframework.web.bind.WebDataBinder binder) managePaymentMethod(String paymentMethodId, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) paymentDetails(org.springframework.ui.Model model) removePaymentMethod(String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) removePaymentMethod(org.springframework.ui.Model model, String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Remove the selected Payment Method.setDefaultPaymentDetails(String paymentInfoId) voidsetMyAccountPaymentDetailsView(String myAccountPaymentDetailsView) voidsetMyAccountSopPaymentDetailsValidator(SbgSopPaymentDetailsValidator myAccountSopPaymentDetailsValidator) protected voidsetPaymentFacade(de.hybris.platform.acceleratorfacades.payment.PaymentFacade paymentFacade) voidsetSopResponseUrlStrategy(SopResponseUrlStrategy sopResponseUrlStrategy) voidsetTmaSubscribedProductFacade(TmaSubscribedProductFacade tmaSubscribedProductFacade) protected voidsetupAddPaymentPage(org.springframework.ui.Model model) protected voidsetupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model) protected voidsetupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model, String clientIpAddress, CCPaymentInfoData ccPaymentInfoData) viewPaymentMethodSubscriptions(String paymentMethodId, org.springframework.ui.Model model) Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
getAddressVerificationFacade, getCartFacade, getCheckoutCustomerStrategy, getCheckoutFacade, getCheckoutFlowFacade, getDeliveryAddresses, getI18NFacade, isAddressIdChanged, isAddressOnList, redirectToOrderConfirmationPage, validateCartMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
PAYMENT_DETAILS_CMS_PAGE
- See Also:
-
customerFacade
protected de.hybris.platform.commercefacades.customer.CustomerFacade customerFacade
-
-
Constructor Details
-
PaymentDetailsPageController
public PaymentDetailsPageController()
-
-
Method Details
-
getTitles
-
getCountries
-
getBillingCountries
-
getCardTypes
-
getMonths
-
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 fromSopPaymentResponseController#getCountryAddressForm(String, boolean, Model)- Parameters:
countryIsoCode-paymentInfoId- the current paymentInfoIdmodel-- 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
-
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
-
getSopResponseUrl
Get the Silent Order Post Response URL.- Returns:
- The silent Order Post URL
-
hasNoPaymentInfo
protected boolean hasNoPaymentInfo() -
getSopCardTypes
-
createCardTypeData
-
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:
getBaseSiteServicein classAbstractPageController
-
getSiteBaseUrlResolutionService
protected de.hybris.platform.acceleratorservices.urlresolver.SiteBaseUrlResolutionService getSiteBaseUrlResolutionService() -
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
-
setSopResponseUrlStrategy
-
getMyAccountPaymentDetailsView
- Returns:
- the myAccountPaymentDetailsView
-
setMyAccountPaymentDetailsView
- Parameters:
myAccountPaymentDetailsView- the myAccountPaymentDetailsView to set
-
getMyAccountSopPaymentDetailsValidator
-
setMyAccountSopPaymentDetailsValidator
public void setMyAccountSopPaymentDetailsValidator(SbgSopPaymentDetailsValidator myAccountSopPaymentDetailsValidator) -
getTmaSubscribedProductFacade
-
setTmaSubscribedProductFacade
-
getTmaOrderEntryFacade
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-