com.elasticpath.sfweb.ajax.service
Interface CheckoutAjaxController

All Known Implementing Classes:
CheckoutAjaxControllerImpl

public interface CheckoutAjaxController

Provides checkout services for ajax.


Method Summary
 java.lang.String checkout(CreditCardFormBean creditCardFormBean, boolean saveCard, javax.servlet.http.HttpServletRequest request)
          Perform the checkout operation with the given cart.
 void setCheckoutService(CheckoutService checkoutService)
           
 void setCustomerService(CustomerService customerService)
           
 void setOnePageHelper(OnePageHelper onePageHelper)
           
 void setRequestHelper(RequestHelper requestHelper)
           
 

Method Detail

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 checkout
saveCard - flag for if the credit card should be saved for future use
request - 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