Class 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 PricingException, 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:
      ServiceException
      PricingException
    • copyShippingAddressToBillingAddress

      protected void copyShippingAddressToBillingAddress(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.