com.elasticpath.sfweb.ajax.service.impl
Class CheckoutAjaxControllerImpl
java.lang.Object
com.elasticpath.sfweb.ajax.service.impl.CheckoutAjaxControllerImpl
- All Implemented Interfaces:
- CheckoutAjaxController
public class CheckoutAjaxControllerImpl
- extends java.lang.Object
- implements CheckoutAjaxController
The default implementation of CheckoutAjaxController
.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckoutAjaxControllerImpl
public CheckoutAjaxControllerImpl()
checkout
public java.lang.String checkout(CreditCardFormBean creditCardFormBean,
boolean saveCard,
javax.servlet.http.HttpServletRequest request)
throws DwrValidationException
- Perform the checkout operation with the given cart.
- Specified by:
checkout
in interface CheckoutAjaxController
- Parameters:
creditCardFormBean
- the credit card being used for the checkoutsaveCard
- flag for if the credit card should be saved for future userequest
- the current request
- Returns:
- a string of the order number
- Throws:
DwrValidationException
- if anything goes wrong with the checkout
setCheckoutService
public void setCheckoutService(CheckoutService checkoutService)
- Specified by:
setCheckoutService
in interface CheckoutAjaxController
- Parameters:
checkoutService
- the checkoutService to set
setCustomerService
public void setCustomerService(CustomerService customerService)
- Specified by:
setCustomerService
in interface CheckoutAjaxController
- Parameters:
customerService
- the CustomerService object
setOnePageHelper
public void setOnePageHelper(OnePageHelper onePageHelper)
- Specified by:
setOnePageHelper
in interface CheckoutAjaxController
- Parameters:
onePageHelper
- the onePageHelper to set
setRequestHelper
public void setRequestHelper(RequestHelper requestHelper)
- Specified by:
setRequestHelper
in interface CheckoutAjaxController
- Parameters:
requestHelper
- the request helper