Class SapDigitalPaymentAndBillingMethodCheckoutStepController

All Implemented Interfaces:
CheckoutStepController

@Controller @RequestMapping("/checkout/multi/sap-digital-payment") public class SapDigitalPaymentAndBillingMethodCheckoutStepController extends AbstractCheckoutStepController
Controller class to handle all the payment and billing address requests in the SAP Digital payment checkout flow
  • Constructor Details

    • SapDigitalPaymentAndBillingMethodCheckoutStepController

      public SapDigitalPaymentAndBillingMethodCheckoutStepController()
  • Method Details

    • registerNewCard

      @RequestMapping(value="/cards/new-card", method=GET) public String registerNewCard(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Register the card with SAP Digital payment
      Parameters:
      model -
      redirectAttributes -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doSelectPaymentMethod

      @RequestMapping(value="/cards/choose", method=GET) public String doSelectPaymentMethod(@RequestParam("selectedPaymentMethodId") 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="/cards/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating back
    • next

      @RequestMapping(value="/cards/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating next
    • enterStep

      @RequestMapping(value="billing-address/add", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Display the billing and payment page
      Returns:
      returns the result for entering the checkout step
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • addBillingAddress

      @RequestMapping(value="billing-address/add", method=POST) public String addBillingAddress(org.springframework.ui.Model model, BillingAddressDetailsForm billingAddressDetailsForm, org.springframework.validation.BindingResult bindingResult) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Adds the billing address details to the cart
      Parameters:
      model -
      billingAddressDetailsForm -
      bindingResult -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • setupBillingAddressPage

      protected void setupBillingAddressPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getBillingAddressValidator

      public BillingAddressValidator getBillingAddressValidator()
      Returns:
      the billingAddressValidator
    • setBillingAddressValidator

      public void setBillingAddressValidator(BillingAddressValidator billingAddressValidator)
      Parameters:
      billingAddressValidator - the billingAddressValidator to set
    • getUserFacade

      public de.hybris.platform.commercefacades.user.UserFacade getUserFacade()
      Overrides:
      getUserFacade in class AbstractPageController
      Returns:
      the userFacade
    • setUserFacade

      public void setUserFacade(de.hybris.platform.commercefacades.user.UserFacade userFacade)
      Parameters:
      userFacade - the userFacade to set
    • 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)
    • setupAddPaymentPage

      protected void setupAddPaymentPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getCheckoutStep

      protected CheckoutStep getCheckoutStep()
    • getCisSapDigitalPaymentFacade

      public CisSapDigitalPaymentFacade getCisSapDigitalPaymentFacade()
      Returns:
      the cisSapDigitalPaymentFacade
    • setCisSapDigitalPaymentFacade

      public void setCisSapDigitalPaymentFacade(CisSapDigitalPaymentFacade cisSapDigitalPaymentFacade)
      Parameters:
      cisSapDigitalPaymentFacade - the cisSapDigitalPaymentFacade to set
    • getSapDigitalPaymentFacade

      public SapDigitalPaymentFacade getSapDigitalPaymentFacade()
      Returns:
      the sapDigitalPaymentFacade
    • setSapDigitalPaymentFacade

      public void setSapDigitalPaymentFacade(SapDigitalPaymentFacade sapDigitalPaymentFacade)
      Parameters:
      sapDigitalPaymentFacade - the sapDigitalPaymentFacade to set
    • getAddressDataUtil

      public AddressDataUtil getAddressDataUtil()
      Returns:
      the addressDataUtil
    • setAddressDataUtil

      public void setAddressDataUtil(AddressDataUtil addressDataUtil)
      Parameters:
      addressDataUtil - the addressDataUtil to set