com.elasticpath.sfweb.ajax.service
Interface CheckoutAjaxController
- All Known Implementing Classes:
- CheckoutAjaxControllerImpl
public interface CheckoutAjaxController
Provides checkout services for ajax.
checkout
java.lang.String checkout(CreditCardFormBean creditCardFormBean,
boolean saveCard,
javax.servlet.http.HttpServletRequest request)
- Perform the checkout operation with the given cart.
- 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
setCheckoutService
void setCheckoutService(CheckoutService checkoutService)
- Parameters:
checkoutService
- the checkoutService to set
setCustomerService
void setCustomerService(CustomerService customerService)
- Parameters:
customerService
- the CustomerService object
setOnePageHelper
void setOnePageHelper(OnePageHelper onePageHelper)
- Parameters:
onePageHelper
- the onePageHelper to set
setRequestHelper
void setRequestHelper(RequestHelper requestHelper)
- Parameters:
requestHelper
- the request helper