Class SopPaymentResponseController
- 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
-
- de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.SopPaymentResponseController
-
- All Implemented Interfaces:
CheckoutStepController
@Controller @RequestMapping("/checkout/multi/sop") public class SopPaymentResponseController extends PaymentMethodCheckoutStepControllerSilent Order Post (SOP) controller.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.b2ctelcoaddon.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 inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.PaymentMethodCheckoutStepController
ATTR_CART_DATA, cybersourceSopCardTypes, PAYMENT_METHOD
-
Fields 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_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 SopPaymentResponseController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>createPaymentDetailsMap(CCPaymentInfoData payInfo)java.lang.StringdoHandleSopResponse(javax.servlet.http.HttpServletRequest request, @Valid SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)Handle SOP response.java.lang.StringgetCountryAddressForm(java.lang.String countryIsoCode, boolean useDeliveryAddress, org.springframework.ui.Model model)Populate data for, and display the Billing address form.protected java.lang.StringmaskAccountNumber(java.lang.String accountNumber)protected SubscriptionPaymentDatasubscriptionFinalizeTransaction(CCPaymentInfoData newPaymentSubscription)Finalize the Subscription Transaction.protected CCPaymentInfoDataupdateMerchantPaymentMethod(CCPaymentInfoData paymentInfo, java.util.Map<java.lang.String,java.lang.String> map)Update the Merchant Payment Method ID on the current paymentInfo.-
Methods inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.PaymentMethodCheckoutStepController
add, back, createAddressData, createCardTypeData, doSelectPaymentMethod, enterStep, getBillingCountries, getCardTypes, getCheckoutStep, getCurrentClientIpAddress, getExpiryYears, getMonths, getSopCardTypes, getStartYears, getSubscriptionFacade, initBinder, initialiseSubscriptionTransaction, next, populatePaymentDetails, remove, setSubscriptionFacade, setupAddPaymentPage, setupHopPage, setupNonHopSopPage, setupSilentOrderPostPage
-
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, 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
-
doHandleSopResponse
@RequestMapping(value="/response", method=POST) public java.lang.String doHandleSopResponse(javax.servlet.http.HttpServletRequest request, @Valid @Valid SopPaymentDetailsForm sopPaymentDetailsForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundExceptionHandle SOP response.- Parameters:
request-sopPaymentDetailsForm-bindingResult-model-redirectAttributes-- Returns:
- the view for the next step in the checkout process, determined by (
PaymentMethodCheckoutStepController.enterStep(Model, RedirectAttributes) - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
updateMerchantPaymentMethod
protected CCPaymentInfoData updateMerchantPaymentMethod(CCPaymentInfoData paymentInfo, java.util.Map<java.lang.String,java.lang.String> map)
Update the Merchant Payment Method ID on the current paymentInfo.- Parameters:
map- the parameter map from the SOP responsepaymentInfo- the currently active paymentInfo data object.- Returns:
- an updated paymentInfo object, or null if the update fails.
-
subscriptionFinalizeTransaction
protected SubscriptionPaymentData subscriptionFinalizeTransaction(CCPaymentInfoData newPaymentSubscription)
Finalize the Subscription Transaction.- Parameters:
sopPaymentDetailsForm-newPaymentSubscription-- Returns:
- the new SubscriptionPaymentData, or null if this method fails.
-
getCountryAddressForm
@RequestMapping(value="/billingaddressform", method=GET) public java.lang.String getCountryAddressForm(@RequestParam("countryIsoCode") java.lang.String countryIsoCode, @RequestParam("useDeliveryAddress") boolean useDeliveryAddress, org.springframework.ui.Model model)Populate data for, and display the Billing address form.- Parameters:
countryIsoCode-useDeliveryAddress-model-- Returns:
- The billing address form view.
-
createPaymentDetailsMap
protected java.util.Map<java.lang.String,java.lang.String> createPaymentDetailsMap(CCPaymentInfoData payInfo)
-
maskAccountNumber
protected java.lang.String maskAccountNumber(java.lang.String accountNumber)
-
-