Interface CheckoutService

  • All Known Implementing Classes:
    DefaultCheckoutService

    public interface CheckoutService
    Author:
    Chad Harchar (charchar), Chris Kittrell (ckittrell)
    • 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 checkout
        contextInfo - 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 checkout
        securityCodes - The map of card security codes keyed by payment id for processing saved payments
        contextInfo - 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