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 PaymentMethodCheckoutStepController
Silent Order Post (SOP) controller.
-
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
Fields inherited from class de.hybris.platform.b2ctelcoaddon.controllers.pages.checkout.steps.PaymentMethodCheckoutStepController
ATTR_CART_DATA, cybersourceSopCardTypes, PAYMENT_METHODFields 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 TypeMethodDescriptioncreatePaymentDetailsMap(CCPaymentInfoData payInfo) doHandleSopResponse(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.getCountryAddressForm(String countryIsoCode, boolean useDeliveryAddress, org.springframework.ui.Model model) Populate data for, and display the Billing address form.protected StringmaskAccountNumber(String accountNumber) protected SubscriptionPaymentDatasubscriptionFinalizeTransaction(CCPaymentInfoData newPaymentSubscription) Finalize the Subscription Transaction.protected CCPaymentInfoDataupdateMerchantPaymentMethod(CCPaymentInfoData paymentInfo, Map<String, 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, getTmaOrderEntryFacade, initBinder, initialiseSubscriptionTransaction, next, populatePaymentDetails, remove, setSubscriptionFacade, setupAddPaymentPage, setupHopPage, setupNonHopSopPage, setupSilentOrderPostPageMethods 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
-
Constructor Details
-
SopPaymentResponseController
public SopPaymentResponseController()
-
-
Method Details
-
doHandleSopResponse
@RequestMapping(value="/response", method=POST) public 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.CMSItemNotFoundException Handle 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, Map<String, 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 String getCountryAddressForm(@RequestParam("countryIsoCode") 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
-
maskAccountNumber
-