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
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
Fields inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
ACTIVE_STAGE, addressService, baseConfirmationView, billingInfoFormValidator, cartPageRedirect, cartStateService, checkoutControllerExtensionManager, checkoutPageRedirect, checkoutService, checkoutStagesPartial, checkoutView, countryService, countrySubdivisionService, customerAddressService, customerPaymentService, customerService, dtoTranslationService, fulfillmentGroupService, fulfillmentOptionService, giftCardInfoFormValidator, initBinderService, isoService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderPaymentService, orderService, paymentGatewayCheckoutService, paymentInfoFormValidator, phoneService, shippingInfoFormValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyShippingAddressToBillingAddress(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.saveBillingAddress(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, BillingInfoForm billingForm, org.springframework.validation.BindingResult result) Processes the request to save a billing address.Methods inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutStagesPartial, getCheckoutView, getConfirmationView, initBinder, populateModelWithReferenceDataMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
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.ServiceExceptionorg.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.
-