public class BroadleafCheckoutController extends AbstractCheckoutController
| Modifier and Type | Field and Description |
|---|---|
protected static String |
baseConfirmationRedirect |
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, stateService| Constructor and Description |
|---|
BroadleafCheckoutController() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Renders the default checkout page and allows modules to add variables to the model.
|
String |
getBaseConfirmationRedirect() |
String |
getCheckoutStagePartial(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
String stage,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Renders checkout stages partial at the requested stage
|
protected String |
getConfirmationViewRedirect(String orderNumber) |
void |
handleProcessingException(Exception e,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
String |
initiateCheckout(Long orderId) |
protected void |
preValidateCartOperation(org.springframework.ui.Model model) |
String |
processCompleteCheckoutOrderFinalized(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
If the order has been finalized.
|
String |
processPassthroughCheckout(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes,
PaymentType paymentType)
Creates a pass-through payment of the PaymentType passed in with
an amount equal to the order total after any non-final applied payments.
|
String |
saveGlobalOrderDetails(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
OrderInfoForm orderInfoForm,
org.springframework.validation.BindingResult result)
Attempts to attach the user's email to the order so that they may proceed anonymously
|
getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutStagesPartial, getCheckoutView, getConfirmationView, initBinder, populateModelWithReferenceDataaddDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected static String baseConfirmationRedirect
public String checkout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
request - response - model - model - protected void preValidateCartOperation(org.springframework.ui.Model model)
public String getCheckoutStagePartial(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String stage, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
request - response - model - stage - public String saveGlobalOrderDetails(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, OrderInfoForm orderInfoForm, org.springframework.validation.BindingResult result) throws ServiceException
request - model - orderInfoForm - result - ServiceExceptionpublic String processPassthroughCheckout(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, PaymentType paymentType) throws PaymentException, PricingException
redirectAttributes - paymentType - PaymentExceptionPricingExceptionpublic String processCompleteCheckoutOrderFinalized(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws PaymentException
ExceptionPaymentExceptionpublic void handleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws PaymentException
PaymentExceptionpublic String getBaseConfirmationRedirect()
Copyright © 2020. All rights reserved.