Interface PayPalCheckoutProvider
-
- All Known Implementing Classes:
DefaultPayPalCheckoutProvider
public interface PayPalCheckoutProviderIdentifies a service that is responsible for making calls against the PayPal REST API.- Author:
- Elbert Bautista (elbertbautista)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends PayPalResponse>
Tcall(PayPalRequest paymentRequest, Class<T> responseType)Makes a request to PayPal
-
-
-
Method Detail
-
call
<T extends PayPalResponse> T call(PayPalRequest paymentRequest, Class<T> responseType)
Makes a request to PayPal- Parameters:
paymentRequest- The payment request that should be executed. The operation that is executed is dependent on which implementation ofPayPalRequestis sentresponseType- The type of the response expected- Returns:
- the respective
PayPalResponsethat corresponds to the givenresponseType - Throws:
com.broadleafcommerce.paymentgateway.service.exception.PaymentException- if thePayPalRequestreturns an exception once executed. This could be because the initial request is configured invalidly or because the PayPal APIs responded with an error.
-
-