Class BroadleafBillingInfoController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
org.broadleafcommerce.core.web.controller.checkout.BroadleafBillingInfoController

public class BroadleafBillingInfoController extends AbstractCheckoutController
Author:
Elbert Bautista (elbertbautista)
  • Constructor Details

    • BroadleafBillingInfoController

      public BroadleafBillingInfoController()
  • Method Details

    • saveBillingAddress

      public String saveBillingAddress(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, BillingInfoForm billingForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.common.exception.ServiceException
      Processes the request to save a billing address.

      Note: this default Broadleaf implementation will create an OrderPayment of type CREDIT_CARD if it doesn't exist and save the passed in billing address

      Parameters:
      request -
      response -
      model -
      billingForm -
      Returns:
      the return path
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
      org.broadleafcommerce.core.pricing.service.exception.PricingException
    • copyShippingAddressToBillingAddress

      protected void copyShippingAddressToBillingAddress(org.broadleafcommerce.core.order.domain.Order order, BillingInfoForm billingInfoForm)
      This method will copy the shipping address of the first fulfillment group on the order to the billing address on the BillingInfoForm that is passed in.