Class PaymentMethodCheckoutStepController
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.checkout.steps.AbstractCheckoutStepController
de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.PaymentMethodCheckoutStepController
- All Implemented Interfaces:
CheckoutStepController
- Direct Known Subclasses:
HopPaymentResponseController,SopPaymentResponseController
@Controller
@RequestMapping("/checkout/multi/payment-method")
public class PaymentMethodCheckoutStepController
extends AbstractCheckoutStepController
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
AbstractCheckoutStepController.CheckoutStepsNested 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
FieldsFields inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
MULTI_CHECKOUT_SUMMARY_CMS_PAGE_LABEL, REDIRECT_URL_ADD_DELIVERY_ADDRESS, REDIRECT_URL_ADD_PAYMENT_METHOD, REDIRECT_URL_CART, REDIRECT_URL_CHOOSE_DELIVERY_METHOD, REDIRECT_URL_ERROR, REDIRECT_URL_SUMMARYFields 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 TypeMethodDescriptionadd(org.springframework.ui.Model model, PaymentDetailsForm paymentDetailsForm, org.springframework.validation.BindingResult bindingResult) back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected AddressDatacreateAddressData(PaymentDetailsForm paymentDetailsForm) protected CardTypeDatacreateCardTypeData(String code, String name) doSelectPaymentMethod(String selectedPaymentMethodId) This method gets called when the "Use These Payment Details" button is clicked.enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) Swapping the parameter order might break the validation aspect from working.protected CheckoutStepprotected StringRequired to initiate a subscription facade call.protected Collection<CardTypeData>protected de.hybris.platform.subscriptionfacades.SubscriptionFacadeprotected TmaOrderEntryFacadevoidinitBinder(org.springframework.web.bind.WebDataBinder binder) protected voidinitialiseSubscriptionTransaction(PaymentData silentOrderPageData) next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected CCPaymentInfoDatapopulatePaymentDetails(PaymentDetailsForm paymentDetailsForm) remove(String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) protected voidsetSubscriptionFacade(de.hybris.platform.subscriptionfacades.SubscriptionFacade subscriptionFacade) protected voidsetupAddPaymentPage(org.springframework.ui.Model model) protected voidsetupHopPage(org.springframework.ui.Model model) protected voidsetupNonHopSopPage(org.springframework.ui.Model model) protected voidsetupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model) Methods inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.AbstractCheckoutStepController
addCheckoutStepsToModel, getAddressValidator, getAddressVerificationResultHandler, getCartFacade, getCheckoutFlowGroupMap, getCheckoutStep, getContentPageBreadcrumbBuilder, getCountries, getCountryDataMap, getCustomerLocationService, getPaymentDetailsValidator, getPaymentFacade, getProductFacade, getRequestParameterMap, getResourceBreadcrumbBuilder, getTitles, prepareDataForPage, setCheckoutStepLinksForModelMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
getAddressVerificationFacade, getCheckoutCustomerStrategy, getCheckoutFacade, getCheckoutFlowFacade, getDeliveryAddresses, getI18NFacade, isAddressIdChanged, isAddressOnList, redirectToOrderConfirmationPage, validateCartMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, 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
-
cybersourceSopCardTypes
-
PAYMENT_METHOD
- See Also:
-
ATTR_CART_DATA
- See Also:
-
-
Constructor Details
-
PaymentMethodCheckoutStepController
public PaymentMethodCheckoutStepController()
-
-
Method Details
-
getBillingCountries
-
getCardTypes
-
getMonths
-
getStartYears
-
getExpiryYears
@ModelAttribute("expiryYears") public List<AbstractCheckoutController.SelectOption> getExpiryYears() -
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:CheckoutStepControllerSwapping 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
-
populatePaymentDetails
-
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
-
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
-
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
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-