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.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
-
- de.hybris.platform.chinesepaymentaddon.controllers.pages.checkout.steps.imported.PaymentMethodCheckoutStepController
-
- All Implemented Interfaces:
CheckoutStepController
- Direct Known Subclasses:
ChinesePaymentMethodCheckoutStepController
public class PaymentMethodCheckoutStepController extends AbstractCheckoutStepController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
AbstractCheckoutStepController.CheckoutSteps
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
AbstractCheckoutController.SelectOption
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,java.lang.String>CYBERSOURCE_SOP_CARD_TYPES-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.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_SUMMARY
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
REDIRECT_URL_ORDER_CONFIRMATION
-
Fields 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_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description PaymentMethodCheckoutStepController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringadd(org.springframework.ui.Model model, @Valid PaymentDetailsForm paymentDetailsForm, org.springframework.validation.BindingResult bindingResult)java.lang.Stringback(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)protected booleancheckPaymentSubscription(org.springframework.ui.Model model, @Valid PaymentDetailsForm paymentDetailsForm, CCPaymentInfoData newPaymentSubscription)protected CardTypeDatacreateCardTypeData(java.lang.String code, java.lang.String name)java.lang.StringdoSelectPaymentMethod(java.lang.String selectedPaymentMethodId)This method gets called when the "Use These Payment Details" button is clicked.java.lang.StringenterStep(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 voidfillInPaymentData(@Valid PaymentDetailsForm paymentDetailsForm, CCPaymentInfoData paymentInfoData)java.util.Collection<CountryData>getBillingCountries()java.util.Collection<CardTypeData>getCardTypes()protected CheckoutStepgetCheckoutStep()java.util.List<AbstractCheckoutController.SelectOption>getExpiryYears()java.util.List<AbstractCheckoutController.SelectOption>getMonths()protected java.util.Collection<CardTypeData>getSopCardTypes()java.util.List<AbstractCheckoutController.SelectOption>getStartYears()java.lang.Stringnext(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)java.lang.Stringremove(java.lang.String paymentMethodId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)protected voidsetupAddPaymentPage(org.springframework.ui.Model model)protected voidsetupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.checkout.steps.AbstractCheckoutStepController
addCheckoutStepsToModel, getAddressValidator, getAddressVerificationResultHandler, getCartFacade, getCheckoutFlowGroupMap, getCheckoutGroup, getCheckoutStep, getContentPageBreadcrumbBuilder, getCountries, getCountryDataMap, getCustomerLocationService, getPaymentDetailsValidator, getPaymentFacade, getProductFacade, getRequestParameterMap, getResourceBreadcrumbBuilder, getTitles, handleUnknownIdentifierException, prepareDataForPage, setCheckoutStepLinksForModel
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCheckoutController
getAddressVerificationFacade, getCheckoutCustomerStrategy, getCheckoutFacade, getCheckoutFlowFacade, getDeliveryAddresses, getI18NFacade, isAddressIdChanged, isAddressOnList, redirectToOrderConfirmationPage, validateCart
-
Methods 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, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
getBillingCountries
@ModelAttribute("billingCountries") public java.util.Collection<CountryData> getBillingCountries()
-
getCardTypes
@ModelAttribute("cardTypes") public java.util.Collection<CardTypeData> getCardTypes()
-
getMonths
@ModelAttribute("months") public java.util.List<AbstractCheckoutController.SelectOption> getMonths()
-
getStartYears
@ModelAttribute("startYears") public java.util.List<AbstractCheckoutController.SelectOption> getStartYears()
-
getExpiryYears
@ModelAttribute("expiryYears") public java.util.List<AbstractCheckoutController.SelectOption> getExpiryYears()
-
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 CMSItemNotFoundExceptionDescription copied from interface:CheckoutStepControllerSwapping the parameter order might break the validation aspect from working.- Returns:
- returns the result for entering the checkout step
- Throws:
CMSItemNotFoundException
-
add
@RequestMapping(value="/add", method=POST) public java.lang.String add(org.springframework.ui.Model model, @Valid @Valid PaymentDetailsForm paymentDetailsForm, org.springframework.validation.BindingResult bindingResult) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
checkPaymentSubscription
protected boolean checkPaymentSubscription(org.springframework.ui.Model model, @Valid @Valid PaymentDetailsForm paymentDetailsForm, CCPaymentInfoData newPaymentSubscription)
-
fillInPaymentData
protected void fillInPaymentData(@Valid @Valid PaymentDetailsForm paymentDetailsForm, CCPaymentInfoData paymentInfoData)
-
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)
-
setupAddPaymentPage
protected void setupAddPaymentPage(org.springframework.ui.Model model) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
setupSilentOrderPostPage
protected void setupSilentOrderPostPage(SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.ui.Model model)
-
getSopCardTypes
protected java.util.Collection<CardTypeData> getSopCardTypes()
-
getCheckoutStep
protected CheckoutStep getCheckoutStep()
-
-