Interface CheckoutService
-
- All Known Implementing Classes:
DefaultCheckoutService
public interface CheckoutService
- Author:
- Chad Harchar (charchar), Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CheckoutResponse
processCheckout(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Process checkout against the provided cartCheckoutResponse
processCheckout(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, Map<String,String> securityCodes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Process checkout against the provided cart
-
-
-
Method Detail
-
processCheckout
default CheckoutResponse processCheckout(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Process checkout against the provided cart- Parameters:
cart
- The cart with which to process checkout.requestId
- The id representing this request to checkoutcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The cart after it has gone through checkout.
- Throws:
CartValidationException
- if the cart is not prepared for checkout
-
processCheckout
CheckoutResponse processCheckout(com.broadleafcommerce.cart.client.domain.Cart cart, String requestId, Map<String,String> securityCodes, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Process checkout against the provided cart- Parameters:
cart
- The cart with which to process checkout.requestId
- The id representing this request to checkoutsecurityCodes
- The map of card security codes keyed by payment id for processing saved paymentscontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The cart after it has gone through checkout.
- Throws:
CartValidationException
- if the cart is not prepared for checkout
-
-