Interface PaymentProvider<P extends Payment>

  • All Known Implementing Classes:
    ExternalPaymentProvider

    public interface PaymentProvider<P extends Payment>
    Provider for interfacing with a Payment Management system for operations around payment related entities. Typically utilizes WebClient to make requests to an external REST API.
    Author:
    Dima Myroniuk (dmyroniuk), Sunny Yu
    • Method Detail

      • readAllByCartId

        List<P> readAllByCartId​(@NonNull
                                @NonNull String cartId,
                                @Nullable
                                com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Retrieves a list of Payments that belong to the given cart id.
        Parameters:
        cartId - the cart id of the Payments to retrieve
        contextInfo - context information around sandbox and multitenant state.
        Returns:
        a list of Payments that belong to the given cart id.