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 TypeMethodDescriptionvoidconfigureRequest(com.paypal.http.HttpRequest<?> request, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest) Configures thePayPal requestbased on thePaymentRequestDTO.com.paypal.core.PayPalHttpClientReturns the configuredPayPalHttpClient.
-
Method Details
-
getClient
com.paypal.core.PayPalHttpClient getClient()Returns the configuredPayPalHttpClient.- Returns:
- the configured
PayPalHttpClient.
-
configureRequest
void configureRequest(com.paypal.http.HttpRequest<?> request, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest) Configures thePayPal requestbased on thePaymentRequestDTO. This will add the request ID and various headers common to all requests.- Parameters:
request- TheHttpRequestto configurepaymentRequest- ThePaymentRequestDTOsent to the gateway
-