Interface CheckoutService

  • All Known Implementing Classes:
    DefaultCheckoutService

    public interface CheckoutService
    Author:
    Chad Harchar (charchar), Chris Kittrell (ckittrell)
    • Method Detail

      • processCheckout

        CheckoutResponse processCheckout​(CheckoutProcessDto checkoutProcessDto,
                                         Map<String,​String> securityCodes,
                                         @Nullable
                                         com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Process checkout against the provided CheckoutProcessDto.
        Parameters:
        checkoutProcessDto - The CheckoutProcessDto for processing checkout
        securityCodes - Secure codes that are passed to the gateway for verification during authorization or capture transactions
        contextInfo - Context information around sandbox and multitenant state
        Returns:
        The CheckoutResponse containing the result of the checkout process
        Throws:
        CartValidationException - if the cart is not prepared for checkout
      • sendCartPendingPaymentFailedEvent

        void sendCartPendingPaymentFailedEvent​(com.broadleafcommerce.cart.client.domain.Cart cart,
                                               @Nullable
                                               com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Send a message to notify external services (and internal listeners) of the cart pending payment failed, so that they can react accordingly.
        Parameters:
        cart - The cart in which one or more of its pending payments failed.
        contextInfo - Context information around sandbox and multitenant state.
        Throws:
        PendingPaymentFailedMessageException - if there was an exception thrown when sending the pending payment failed event.