Interface PaymentTransactionExecutionService

  • All Known Implementing Classes:
    DefaultPaymentTransactionExecutionService

    public interface PaymentTransactionExecutionService
    This service is meant to coordinate the execution of payment transactions against the cart's PaymentSummaries in the context of a checkout submission.
    Author:
    Chris Kittrell (ckittrell)
    • Method Detail

      • executeCartPaymentTransactions

        com.broadleafcommerce.cart.client.domain.Cart executeCartPaymentTransactions​(com.broadleafcommerce.cart.client.domain.Cart cart,
                                                                                     String requestId,
                                                                                     Map<String,​String> paymentLockTokens,
                                                                                     Map<String,​String> securityCodes,
                                                                                     @Nullable
                                                                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Executes set of payment transactions against the cart's PaymentSummaries.
        Parameters:
        cart - The cart that is being checked out & that owns the related PaymentSummary.
        requestId - The id representing this request to checkout.
        paymentLockTokens - Tokens that grant this service access to act upon the payment. The presence of these tokens indicates that this execution flow owns the lock.
        securityCodes - The map of card security codes keyed by payment id for processing saved payments
        contextInfo - The context of the user's request.
        Returns:
        The most up-to-date cart following the execution of the transaction
        Throws:
        PaymentTransactionFailureException - if the transaction was not successfully executed, either due to a transaction failure or an unexpected exception.