Interface PayPalClientProvider

All Known Implementing Classes:
PayPalClientProviderImpl

public interface PayPalClientProvider
Identifies a service that configures and provides access to a PayPalHttpClient with which to execute requests based on PayPalCheckoutConfiguration. It also provides common configuration for outgoing PayPal HttpRequests.
Author:
Nathan Moore (nathandmoore)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureRequest(com.paypal.http.HttpRequest<?> request, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest)
    Configures the PayPal request based on the PaymentRequestDTO.
    com.paypal.core.PayPalHttpClient
    Returns the configured PayPalHttpClient.
  • Method Details

    • getClient

      com.paypal.core.PayPalHttpClient getClient()
      Returns the configured PayPalHttpClient.
      Returns:
      the configured PayPalHttpClient.
    • configureRequest

      void configureRequest(com.paypal.http.HttpRequest<?> request, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest)
      Configures the PayPal request based on the PaymentRequestDTO. This will add the request ID and various headers common to all requests.
      Parameters:
      request - The HttpRequest to configure
      paymentRequest - The PaymentRequestDTO sent to the gateway