Class SopPaymentResponseController

    • Constructor Detail

      • SopPaymentResponseController

        public SopPaymentResponseController()
    • 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.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,
                                                                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 response
        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:
        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)