Class BroadleafPaymentInfoController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
org.broadleafcommerce.core.web.controller.checkout.BroadleafPaymentInfoController
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
FieldsFields 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, fulfillmentOptionService, giftCardInfoFormValidator, initBinderService, isoService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderPaymentService, orderService, paymentGatewayCheckoutService, paymentInfoFormValidator, phoneService, shippingInfoFormValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTemporaryOrderPayment(PaymentInfoForm paymentForm, Order cart) protected voidprotected voidcopyShippingAddressToBillingAddress(Order order, PaymentInfoForm paymentInfoForm) This method will copy the shipping address of the first fulfillment group on the order to the billing address on the PaymentInfoForm that is passed in.protected voidpreProcessBillingAddress(PaymentInfoForm paymentForm, Order cart) saveBillingAddress(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, org.springframework.validation.BindingResult result) Processes the request to save a billing address.savePaymentInfo(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, org.springframework.validation.BindingResult result) Processes the request to save anOrderPaymentbased on an existing or newCustomerPayment.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
-
Field Details
-
savedPaymentService
-
fulfillmentGroupService
-
-
Constructor Details
-
BroadleafPaymentInfoController
public BroadleafPaymentInfoController()
-
-
Method Details
-
savePaymentInfo
public String savePaymentInfo(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, org.springframework.validation.BindingResult result) throws PricingException, ServiceException Processes the request to save anOrderPaymentbased on an existing or newCustomerPayment.Note: this default Broadleaf implementation will create a CustomerPayment if one does not exist, and copy it's data to a new OrderPayment.
- Parameters:
request-response-model-paymentForm-- Returns:
- the return path
- Throws:
ServiceExceptionPricingException
-
saveBillingAddress
public String saveBillingAddress(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, PaymentInfoForm paymentForm, 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 and save the passed in billing address
- Parameters:
request-response-model-paymentForm-- Returns:
- the return path
- Throws:
ServiceExceptionPricingException
-
preProcessBillingAddress
-
copyShippingAddressToBillingAddress
This method will copy the shipping address of the first fulfillment group on the order to the billing address on the PaymentInfoForm that is passed in. -
copyCustomerPaymentAddressToBillingAddress
-
addTemporaryOrderPayment
-