Class SopPaymentResponseController


@Controller("telcoMyAccountSopPaymentResponseController") @RequestMapping("/my-account/my-payment-details/sop") public class SopPaymentResponseController extends PaymentDetailsPageController
Silent Order Post (SOP) controller.
  • 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 -
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • prepareDataForPage

      protected void prepareDataForPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      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 current merchantPaymentMethodId
      paymentInfo - 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:
      newPaymentSubscription -
      Returns:
      the new SubscriptionPaymentData, or null if this method fails.
    • getRequestParameterMap

      protected Map<String,String> getRequestParameterMap(javax.servlet.http.HttpServletRequest request)
    • getCountryDataMap

      @ModelAttribute("countryDataMap") public Map<String,CountryData> getCountryDataMap()
    • getResourceBreadcrumbBuilder

      protected ResourceBreadcrumbBuilder getResourceBreadcrumbBuilder()
    • setResourceBreadcrumbBuilder

      public void setResourceBreadcrumbBuilder(ResourceBreadcrumbBuilder resourceBreadcrumbBuilder)
    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
      Overrides:
      initBinder in class PaymentDetailsPageController